예제 #1
0
 static Task RunAfterEndpointStart(CompositionContainer compositionContainer, IEndpointInstance endpoint)
 {
     return(compositionContainer.ExecuteExports <IRunAfterEndpointStart>(_ => _.Run(endpoint)));
 }
예제 #2
0
 static Task RunAfterEndpointStop(CompositionContainer compositionContainer)
 {
     return(compositionContainer.ExecuteExports <IRunAfterEndpointStop>(_ => _.Run()));
 }
예제 #3
0
 static Task RunBeforeEndpointStop(CompositionContainer compositionContainer, IEndpointInstance endpoint)
 {
     return(compositionContainer.ExecuteExports <IRunBeforeEndpointStop>(_ => _.Run(endpoint)));
 }
예제 #4
0
 static Task RunBeforeEndpointStart(CompositionContainer compositionContainer)
 {
     return(compositionContainer.ExecuteExports <IRunBeforeEndpointStart>(_ => _.Run()));
 }
예제 #5
0
    // 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)));
    }
예제 #6
0
 static void RunBeforeEndpointStop(CompositionContainer compositionContainer, IBus bus)
 {
     compositionContainer.ExecuteExports <IRunBeforeEndpointStop>(_ => _.Run(bus));
 }
예제 #7
0
 static void RunAfterEndpointStart(CompositionContainer compositionContainer, IBus bus)
 {
     compositionContainer.ExecuteExports <IRunAfterEndpointStart>(_ => _.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());
 }
예제 #11
0
 static async Task RunAfterEndpointStop(CompositionContainer compositionContainer)
 {
     await compositionContainer.ExecuteExports <IRunAfterEndpointStop>(_ => _.Run());
 }
예제 #12
0
 static async Task RunBeforeEndpointStart(CompositionContainer compositionContainer)
 {
     await compositionContainer.ExecuteExports <IRunBeforeEndpointStart>(_ => _.Run());
 }