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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|