Browse Source

Update AbpEventBusRebusModule.cs

pull/23613/head
liangshiwei 1 year ago
parent
commit
b7ce35635f
  1. 4
      framework/src/Volo.Abp.EventBus.Rebus/Volo/Abp/EventBus/Rebus/AbpEventBusRebusModule.cs

4
framework/src/Volo.Abp.EventBus.Rebus/Volo/Abp/EventBus/Rebus/AbpEventBusRebusModule.cs

@ -50,6 +50,8 @@ public class AbpEventBusRebusModule : AbpModule
.Initialize();
var rebusOptions = context.ServiceProvider.GetRequiredService<IOptions<AbpRebusEventBusOptions>>().Value;
context.ServiceProvider.GetRequiredService<IBusRegistry>().StartBus(rebusOptions.RebusInstanceName);
context.ServiceProvider
.GetRequiredService<IBusRegistry>()
.StartBus(rebusOptions.RebusInstanceName);
}
}

Loading…
Cancel
Save