Skip to content

DovetailContextBuilder Methods

ClassMethods11 members
Builder that can be used to create a context.
Adds a set of conventions to the scanner
public sealed class DovetailContextBuilder
{
public DovetailContextBuilder AppendJoint(
params IEnumerable<IDovetailJointMetadata> conventions)
{
// ...
}
}
conventionsIEnumerable<IDovetailJointMetadata>The conventions.
DovetailContextBuilderIDovetailScanner.
Adds a set of conventions to the scanner
public sealed class DovetailContextBuilder
{
public DovetailContextBuilder AppendJoint(
params IEnumerable<IDovetailJoint> conventions)
{
// ...
}
}
conventionsIEnumerable<IDovetailJoint>The conventions.
DovetailContextBuilderIDovetailScanner.
Adds a set of conventions to the scanner
public sealed class DovetailContextBuilder
{
public DovetailContextBuilder AppendJoint<T>()
{
// ...
}
}
Create(IEnumerable<IDovetailJointMetadata>, IDictionary<object, object>, DovetailHostType, IEnumerable<DovetailCategory>)Section titled Create(IEnumerable<IDovetailJointMetadata>, IDictionary<object, object>, DovetailHostType, IEnumerable<DovetailCategory>)staticDovetailContextBuilder
Create a default context builder
public sealed class DovetailContextBuilder
{
public static DovetailContextBuilder Create(
IEnumerable<IDovetailJointMetadata> conventions,
IDictionary<object, object> properties,
DovetailHostType hostType,
IEnumerable<DovetailCategory> categories)
{
// ...
}
}
conventionsIEnumerable<IDovetailJointMetadata>The joints to seed the builder with.
propertiesIDictionary<object, object>The initial set of properties to populate the context with.
hostTypeDovetailHostTypeThe host type the resulting context should be scoped to.
categoriesIEnumerable<DovetailCategory> The categories of joints the resulting context loads besides the Core joints, which are always loaded. An empty set loads the Application joints as well.
Create(IEnumerable<IDovetailJointMetadata>, IDictionary<object, object>, IEnumerable<DovetailCategory>)Section titled Create(IEnumerable<IDovetailJointMetadata>, IDictionary<object, object>, IEnumerable<DovetailCategory>)staticDovetailContextBuilder
Create a default context builder
public sealed class DovetailContextBuilder
{
public static DovetailContextBuilder Create(
IEnumerable<IDovetailJointMetadata> conventions,
IDictionary<object, object> properties,
IEnumerable<DovetailCategory> categories)
{
// ...
}
}
conventionsIEnumerable<IDovetailJointMetadata>The joints to seed the builder with.
propertiesIDictionary<object, object>The initial set of properties to populate the context with.
categoriesIEnumerable<DovetailCategory> The categories of joints the resulting context loads besides the Core joints, which are always loaded. An empty set loads the Application joints as well.
CreateAsync(CancellationToken)Section titled CreateAsync(CancellationToken)ValueTask<IDovetailContext>
Create a new IDovetailContext
public sealed class DovetailContextBuilder
{
public ValueTask<IDovetailContext> CreateAsync(
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
cancellationTokenCancellationTokenoptionalThe cancellation token used during setup.
ValueTask<IDovetailContext>The newly created and set up IDovetailContext.
Adds an exception to the scanner to exclude a specific convention
public sealed class DovetailContextBuilder
{
public DovetailContextBuilder ExceptJoint(
params IEnumerable<Assembly> assemblies)
{
// ...
}
}
assembliesIEnumerable<Assembly>The additional types to exclude.
Adds an exception to the scanner to exclude a specific convention
public sealed class DovetailContextBuilder
{
public DovetailContextBuilder ExceptJoint(
params IEnumerable<Type> types)
{
// ...
}
}
typesIEnumerable<Type>The additional types to exclude.
Adds a set of conventions to the scanner
public sealed class DovetailContextBuilder
{
public DovetailContextBuilder PrependJoint(
params IEnumerable<IDovetailJointMetadata> conventions)
{
// ...
}
}
conventionsIEnumerable<IDovetailJointMetadata>The conventions.
Adds a set of conventions to the scanner
public sealed class DovetailContextBuilder
{
public DovetailContextBuilder PrependJoint(
params IEnumerable<IDovetailJoint> conventions)
{
// ...
}
}
conventionsIEnumerable<IDovetailJoint>The conventions.
Adds a set of conventions to the scanner
public sealed class DovetailContextBuilder
{
public DovetailContextBuilder PrependJoint<T>()
{
// ...
}
}