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

SettingDescription
ConcurrentMessage Limitthe number of concurrent messages this activity will process at once
Argumentsadd middleware
Activity Argumentsadd middleware
Routing Slipadd middleware

These can be set either inline using the AddActivity methods, or by implementing the IActivityDefinition<TActivity, TArguments, TLog> interface.

Compensate Configuration

SettingDescription
ConcurrentMessage Limitthe number of concurrent messages this activity will process at once
Logadd middleware
Activity Logadd middleware
Routing Slipadd middleware