ServiceProviderExtensions
public static class ServiceProviderExtensions
Namespace: RhoMicro.BindSight.Services
Inheritance:
DirectoryServiceProviderExtensions
Summary
Section titled “Summary”Provides extensions for IServiceProvider.
Methods
Section titled “Methods”RunBindSight(IServiceProvider, CancellationToken)
Section titled “RunBindSight(IServiceProvider, CancellationToken)”public static Task<bool> RunBindSight(this IServiceProvider serviceProvider, [CancellationToken cancellationToken = default(CancellationToken)])
Summary
Section titled “Summary”Runs the options docs generators registered to the service provider.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
cancellationToken | CancellationToken | The cancellation token used to request the running of generators to be cancelled. |
serviceProvider | IServiceProvider | The service provider whose registered options docs generators to run. |
Returns
Section titled “Returns”A task, which, upon completion, will contain information on whether the generators runner actually did run. The task will complete upon all generators having ran or the runner exiting early due to IBindSightRunnerOptions.ExitOnCancellation.