static Task RunAfterEndpointStart(CompositionContainer compositionContainer, IEndpointInstance endpoint) { return(compositionContainer.ExecuteExports <IRunAfterEndpointStart>(_ => _.Run(endpoint))); }
static Task RunAfterEndpointStop(CompositionContainer compositionContainer) { return(compositionContainer.ExecuteExports <IRunAfterEndpointStop>(_ => _.Run())); }
static Task RunBeforeEndpointStop(CompositionContainer compositionContainer, IEndpointInstance endpoint) { return(compositionContainer.ExecuteExports <IRunBeforeEndpointStop>(_ => _.Run(endpoint))); }
static Task RunBeforeEndpointStart(CompositionContainer compositionContainer) { return(compositionContainer.ExecuteExports <IRunBeforeEndpointStart>(_ => _.Run())); }
// Other injection points excluded, but follow the same pattern as above #endregion static Task RunCustomizeConfiguration(CompositionContainer compositionContainer, EndpointConfiguration endpointConfiguration) { return(compositionContainer.ExecuteExports <ICustomizeConfiguration>(_ => _.Run(endpointConfiguration))); }
static void RunBeforeEndpointStop(CompositionContainer compositionContainer, IBus bus) { compositionContainer.ExecuteExports <IRunBeforeEndpointStop>(_ => _.Run(bus)); }
static void RunAfterEndpointStart(CompositionContainer compositionContainer, IBus bus) { compositionContainer.ExecuteExports <IRunAfterEndpointStart>(_ => _.Run(bus)); }
static void RunAfterEndpointStop(CompositionContainer compositionContainer) { compositionContainer.ExecuteExports <IRunAfterEndpointStop>(_ => _.Run()); }
// Other injection points excluded, but follow the same pattern as above #endregion static void RunCustomizeConfiguration(CompositionContainer compositionContainer, BusConfiguration busConfiguration) { compositionContainer.ExecuteExports <ICustomizeConfiguration>(_ => _.Run(busConfiguration)); }
static void RunBeforeEndpointStart(CompositionContainer compositionContainer) { compositionContainer.ExecuteExports <IRunBeforeEndpointStart>(_ => _.Run()); }
static async Task RunAfterEndpointStop(CompositionContainer compositionContainer) { await compositionContainer.ExecuteExports <IRunAfterEndpointStop>(_ => _.Run()); }
static async Task RunBeforeEndpointStart(CompositionContainer compositionContainer) { await compositionContainer.ExecuteExports <IRunBeforeEndpointStart>(_ => _.Run()); }