Skip to content

HostExtensions

public static class HostExtensions

Namespace: RhoMicro.BindSight.Services

Inheritance:

Provides extension methods for IHost.

public static Task<bool> RunBindSight(this IHost host, [CancellationToken cancellationToken = default(CancellationToken)])

Runs the options docs generators registered to the hosts service collection.

NameTypeDescription
cancellationTokenCancellationTokenThe cancellation token used to request the running of generators to be cancelled.
hostIHostThe host whose registered options docs generators to run.

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.