HostExtensions
public static class HostExtensions
Namespace: RhoMicro.BindSight.Services
Inheritance:
DirectoryHostExtensions
Summary
Section titled “Summary”Provides extension methods for IHost.
Methods
Section titled “Methods”RunBindSight(IHost, CancellationToken)
Section titled “RunBindSight(IHost, CancellationToken)”public static Task<bool> RunBindSight(this IHost host, [CancellationToken cancellationToken = default(CancellationToken)])
Summary
Section titled “Summary”Runs the options docs generators registered to the hosts service collection.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
cancellationToken | CancellationToken | The cancellation token used to request the running of generators to be cancelled. |
host | IHost | The host 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.