Exemple #1
0
 static Task RunAfterEndpointStart(CompositionContainer compositionContainer, IEndpointInstance endpoint)
 {
     return(compositionContainer.ExecuteExports <IRunAfterEndpointStart>(_ => _.Run(endpoint)));
 }
Exemple #2
0
 static Task RunAfterEndpointStop(CompositionContainer compositionContainer)
 {
     return(compositionContainer.ExecuteExports <IRunAfterEndpointStop>(_ => _.Run()));
 }
Exemple #3
0
 static Task RunBeforeEndpointStop(CompositionContainer compositionContainer, IEndpointInstance endpoint)
 {
     return(compositionContainer.ExecuteExports <IRunBeforeEndpointStop>(_ => _.Run(endpoint)));
 }
Exemple #4
0
 static Task RunBeforeEndpointStart(CompositionContainer compositionContainer)
 {
     return(compositionContainer.ExecuteExports <IRunBeforeEndpointStart>(_ => _.Run()));
 }
Exemple #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)));
    }
 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());
 }