Browse Source

Merge pull request #13068 from abpframework/liangshiwei/redbus-patch

Initialize rebus event bus before use rebus
pull/13069/head
maliming 4 years ago
committed by GitHub
parent
commit
d58d322b1b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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

@ -41,11 +41,11 @@ public class AbpEventBusRebusModule : AbpModule
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
context.ServiceProvider.UseRebus();
context
.ServiceProvider
.GetRequiredService<RebusDistributedEventBus>()
.Initialize();
context.ServiceProvider.UseRebus();
}
}

Loading…
Cancel
Save