src/Miles.MassTransit/Courier/ExecuteActivityHostExtensions.cs
/// <summary>
/// Configures an execute activity identifying the compensate path by convention.
/// </summary>
/// <typeparam name="TActivity">Activity processor.</typeparam>
/// <typeparam name="TArguments">Arguements DTO.</typeparam>
/// <typeparam name="TLog">Compensation log DTO.</typeparam>
/// <param name="configurator">The configurator.</param>
/// <param name="compensateHostAddress">The compensation host address.</param>
/// <param name="factory">The factory.</param>
/// <param name="configure">The configure.</param>
Configures an execute activity identifying the compensate path by convention.
Configures an execute activity identifying the compensate path by convention .
public static void ExecuteActivityHost<TActivity, TArguments, TLog>(this IReceiveEndpointConfigurator configurator, Uri compensateHostAddress, ExecuteActivityFactory<TActivity, TArguments> factory, Action<IExecuteActivityConfigurator<TActivity, TArguments>> configure = null)
            where TActivity : class, ExecuteActivity<TArguments>, CompensateActivity<TLog>
            where TArguments : class
            where TLog : class
        {
            var compensateQueue = typeof(TLog).GenerateCompensationQueueName();
            configurator.ExecuteActivityHost<TActivity, TArguments>(new Uri(compensateHostAddress, "./" + compensateQueue), factory, configure);
        }
public static void ExecuteActivityHost < TActivity , TArguments , TLog > ( this IReceiveEndpointConfigurator configurator , Uri compensateHostAddress , ExecuteActivityFactory < TActivity , TArguments > factory , Action < IExecuteActivityConfigurator < TActivity , TArguments > > configure = null ) where TActivity : class , ExecuteActivity < TArguments > , CompensateActivity < TLog > where TArguments : class where TLog : class { var compensateQueue = typeof ( TLog ) . GenerateCompensationQueueName ( ) ; configurator . ExecuteActivityHost < TActivity , TArguments > ( new Uri ( compensateHostAddress , " " + compensateQueue ) , factory , configure ) ; }
Configures an execute activity identifying the compensate path by convention.
Configures an execute activity identifying the compensate path by convention .
IReceiveEndpointConfigurator
this
compensateHostAddress
Uri
The compensation host address.
The compensation host address .
factory
ExecuteActivityFactory<TActivity, TArguments>
None
configure
Action<IExecuteActivityConfigurator<TActivity, TArguments>>
None
configurator
None
typeparam
None
typeparam
None
typeparam
Compensation log DTO.
Compensation log DTO .