Skip to content

DovetailContextBuilderExtensions Methods

ClassMethods1 member
Dovetail Context build extensions.
CreateServiceProvider(IDovetailContext, CancellationToken)Section titled CreateServiceProvider(IDovetailContext, CancellationToken)extensionValueTask<IServiceProvider>
Allows creation of a service provider from the convention context. This will apply configuration
public static class DovetailContextBuilderExtensions
{
public static ValueTask<IServiceProvider> CreateServiceProvider(
this IDovetailContext context,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
contextIDovetailContextThe context to build a service provider from.
cancellationTokenCancellationTokenoptionalThe cancellation token used while applying configuration, services, and logging.
ValueTask<IServiceProvider>The IServiceProvider built from the context.