Registration Detail
Activities are added inside the AddMassTransit
configuration using any of the following methods.
services.AddMassTransit(cfg =>
{
cfg.AddActivity<MyActivity, MyActivityArgs, MyActivityLog>();
cfg.AddActivity<MyActivity, MyActivityArgs, MyActivityLog>(typeof(MyActivityDefinition));
cfg.AddActivity(typeof(MyActivityDefinition));
// Execution Only Activities
cfg.AddExecuteActivity<MyExecuteActivity, MyExecuteActivityArgs>();
cfg.AddExecuteActivity(typeof(MyExecuteActivityDefinition));
});
Execution Configuration
Setting | Description |
---|---|
ConcurrentMessage Limit | the number of concurrent messages this activity will process at once |
Arguments | add middleware |
Activity Arguments | add middleware |
Routing Slip | add middleware |
These can be set either inline using the AddActivity
methods, or by implementing the IActivityDefinition<TActivity, TArguments, TLog>
interface.
Compensate Configuration
Setting | Description |
---|---|
ConcurrentMessage Limit | the number of concurrent messages this activity will process at once |
Log | add middleware |
Activity Log | add middleware |
Routing Slip | add middleware |
Table of Contents