예제 #1
0
 static async Task RunAfterEndpointStart(CompositionContainer compositionContainer, IEndpointInstance endpoint)
 {
    await compositionContainer.ExecuteExports<IRunAfterEndpointStart>(_ => _.Run(endpoint));
 }
예제 #2
0
 static async Task RunAfterEndpointStop(CompositionContainer compositionContainer)
 {
     await compositionContainer.ExecuteExports<IRunAfterEndpointStop>(_ => _.Run());
 }
예제 #3
0
 static async Task RunBeforeEndpointStop(CompositionContainer compositionContainer, IEndpointInstance endpoint)
 {
     await compositionContainer.ExecuteExports<IRunBeforeEndpointStop>(_ => _.Run(endpoint));
 }
예제 #4
0
 static async Task RunBeforeEndpointStart(CompositionContainer compositionContainer)
 {
     await compositionContainer.ExecuteExports<IRunBeforeEndpointStart>(_ => _.Run());
 }
예제 #5
0
    // Other injection points excluded, but follow the same pattern as above

    #endregion

    static async Task RunCustomizeConfiguration(CompositionContainer compositionContainer, EndpointConfiguration endpointConfiguration)
    {
        await compositionContainer.ExecuteExports<ICustomizeConfiguration>(_ => _.Run(endpointConfiguration));
    }
예제 #6
0
 static void RunAfterEndpointStart(CompositionContainer compositionContainer, IBus bus)
 {
     compositionContainer.ExecuteExports<IRunAfterEndpointStart>(_ => _.Run(bus));
 }
예제 #7
0
 static void RunBeforeEndpointStop(CompositionContainer compositionContainer, IBus bus)
 {
     compositionContainer.ExecuteExports<IRunBeforeEndpointStop>(_ => _.Run(bus));
 }
예제 #8
0
 static void RunAfterEndpointStop(CompositionContainer compositionContainer)
 {
     compositionContainer.ExecuteExports<IRunAfterEndpointStop>(_ => _.Run());
 }
예제 #9
0
    // Other injection points excluded, but follow the same pattern as above

    #endregion

    static void RunCustomizeConfiguration(CompositionContainer compositionContainer, BusConfiguration busConfiguration)
    {
        compositionContainer.ExecuteExports<ICustomizeConfiguration>(_ => _.Run(busConfiguration));
    }
예제 #10
0
 static void RunBeforeEndpointStart(CompositionContainer compositionContainer)
 {
     compositionContainer.ExecuteExports<IRunBeforeEndpointStart>(_ => _.Run());
 }