From dc55f9903c0322b78d8ea854ad868447f5df470b Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Mon, 12 Nov 2018 16:18:23 +0300 Subject: [PATCH] Add missing dependency and rename the rabbitmq eventbus module --- .../RabbitMq/AbpEventBusRabbitMqModule.cs | 13 +++++++++++++ .../AbpRabbitMqDistributedEventBusModule.cs | 10 ---------- .../Distributed/LocalDistributedEventBus.cs | 1 + 3 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 framework/src/Volo.Abp.EventBus.Distributed.RabbitMQ/Volo/Abp/EventBus/Distributed/RabbitMq/AbpEventBusRabbitMqModule.cs delete mode 100644 framework/src/Volo.Abp.EventBus.Distributed.RabbitMQ/Volo/Abp/EventBus/Distributed/RabbitMq/AbpRabbitMqDistributedEventBusModule.cs diff --git a/framework/src/Volo.Abp.EventBus.Distributed.RabbitMQ/Volo/Abp/EventBus/Distributed/RabbitMq/AbpEventBusRabbitMqModule.cs b/framework/src/Volo.Abp.EventBus.Distributed.RabbitMQ/Volo/Abp/EventBus/Distributed/RabbitMq/AbpEventBusRabbitMqModule.cs new file mode 100644 index 0000000000..c07c2c5127 --- /dev/null +++ b/framework/src/Volo.Abp.EventBus.Distributed.RabbitMQ/Volo/Abp/EventBus/Distributed/RabbitMq/AbpEventBusRabbitMqModule.cs @@ -0,0 +1,13 @@ +using Volo.Abp.Modularity; +using Volo.Abp.RabbitMQ; + +namespace Volo.Abp.EventBus.Distributed.RabbitMq +{ + [DependsOn( + typeof(AbpEventBusModule), + typeof(AbpRabbitMqModule))] + public class AbpEventBusRabbitMqModule : AbpModule + { + + } +} diff --git a/framework/src/Volo.Abp.EventBus.Distributed.RabbitMQ/Volo/Abp/EventBus/Distributed/RabbitMq/AbpRabbitMqDistributedEventBusModule.cs b/framework/src/Volo.Abp.EventBus.Distributed.RabbitMQ/Volo/Abp/EventBus/Distributed/RabbitMq/AbpRabbitMqDistributedEventBusModule.cs deleted file mode 100644 index a4e4c86829..0000000000 --- a/framework/src/Volo.Abp.EventBus.Distributed.RabbitMQ/Volo/Abp/EventBus/Distributed/RabbitMq/AbpRabbitMqDistributedEventBusModule.cs +++ /dev/null @@ -1,10 +0,0 @@ -using Volo.Abp.Modularity; - -namespace Volo.Abp.EventBus.Distributed.RabbitMq -{ - [DependsOn(typeof(AbpEventBusModule))] - public class AbpRabbitMqDistributedEventBusModule : AbpModule - { - - } -} diff --git a/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Distributed/LocalDistributedEventBus.cs b/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Distributed/LocalDistributedEventBus.cs index fa353be5c7..38c3687e48 100644 --- a/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Distributed/LocalDistributedEventBus.cs +++ b/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Distributed/LocalDistributedEventBus.cs @@ -4,6 +4,7 @@ using Volo.Abp.DependencyInjection; namespace Volo.Abp.EventBus.Distributed { + [Dependency(TryRegister = true)] public class LocalDistributedEventBus : IDistributedEventBus, ITransientDependency { private readonly IEventBus _eventBus;