mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
624 B
22 lines
624 B
using Volo.Abp.Modularity;
|
|
|
|
namespace Volo.Abp.EventBus
|
|
{
|
|
[DependsOn(typeof(AbpEventBusModule))]
|
|
public class EventBusTestModule : AbpModule
|
|
{
|
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
PreConfigure<AbpEventBusOptions>(options =>
|
|
{
|
|
options.UseRetryStrategy(retryStrategyOptions =>
|
|
{
|
|
retryStrategyOptions.IntervalMillisecond = 0;
|
|
});
|
|
|
|
options.ErrorHandleSelector = type => type == typeof(MyExceptionHandleEventData);
|
|
});
|
|
}
|
|
}
|
|
}
|