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)) { // ... }}Parameters
contextIcancellationToken CancellationToken optionalThe cancellation token used while applying configuration, services, and logging.Returns
ValueTask<IServiceProvider> The IServiceProvider built from the context.