Class RabbitMqDistributedEventBus
Inheritance
System.Object
RabbitMqDistributedEventBus
Implements
ISingletonDependency
Inherited Members
Volo.Abp.EventBus.EventBusBase.Subscribe<TEvent>(Func<, >)
Volo.Abp.EventBus.EventBusBase.Unsubscribe<TEvent>(Func<, >)
Volo.Abp.EventBus.EventBusBase.TriggerHandlersAsync(Type, System.Object, List<>)
Volo.Abp.EventBus.EventBusBase.TriggerHandlerAsync(Volo.Abp.EventBus.IEventHandlerFactory, Type, System.Object, List<>)
Assembly: Volo.Abp.EventBus.RabbitMQ.dll
Syntax
public class RabbitMqDistributedEventBus : EventBusBase, IDistributedEventBus, IEventBus, ISingletonDependency
Constructors
RabbitMqDistributedEventBus(IOptions<AbpRabbitMqEventBusOptions>, IConnectionPool, IRabbitMqSerializer, IServiceScopeFactory, IOptions<AbpDistributedEventBusOptions>, IRabbitMqMessageConsumerFactory, ICurrentTenant)
Declaration
public RabbitMqDistributedEventBus(IOptions<AbpRabbitMqEventBusOptions> options, IConnectionPool connectionPool, IRabbitMqSerializer serializer, IServiceScopeFactory serviceScopeFactory, IOptions<AbpDistributedEventBusOptions> distributedEventBusOptions, IRabbitMqMessageConsumerFactory messageConsumerFactory, ICurrentTenant currentTenant)
Parameters
Properties
AbpDistributedEventBusOptions
Declaration
protected AbpDistributedEventBusOptions AbpDistributedEventBusOptions { get; }
Property Value
AbpRabbitMqEventBusOptions
Declaration
protected AbpRabbitMqEventBusOptions AbpRabbitMqEventBusOptions { get; }
Property Value
ConnectionPool
Declaration
protected IConnectionPool ConnectionPool { get; }
Property Value
Consumer
Declaration
protected IRabbitMqMessageConsumer Consumer { get; }
Property Value
EventTypes
Declaration
protected ConcurrentDictionary<string, Type> EventTypes { get; }
Property Value
Type |
Description |
ConcurrentDictionary<System.String, Type> |
|
HandlerFactories
Declaration
protected ConcurrentDictionary<Type, List<IEventHandlerFactory>> HandlerFactories { get; }
Property Value
MessageConsumerFactory
Declaration
protected IRabbitMqMessageConsumerFactory MessageConsumerFactory { get; }
Property Value
Serializer
Declaration
protected IRabbitMqSerializer Serializer { get; }
Property Value
Methods
GetHandlerFactories(Type)
Declaration
protected override IEnumerable<EventBusBase.EventTypeWithEventHandlerFactories> GetHandlerFactories(Type eventType)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
Returns
Initialize()
Declaration
PublishAsync(Type, Object)
Declaration
public override Task PublishAsync(Type eventType, object eventData)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
System.Object |
eventData |
|
Returns
Subscribe(Type, IEventHandlerFactory)
Declaration
public override IDisposable Subscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Returns
Type |
Description |
IDisposable |
|
Subscribe<TEvent>(IDistributedEventHandler<TEvent>)
Declaration
public IDisposable Subscribe<TEvent>(IDistributedEventHandler<TEvent> handler)
where TEvent : class
Parameters
Returns
Type |
Description |
IDisposable |
|
Type Parameters
Unsubscribe(Type, IEventHandler)
Declaration
public override void Unsubscribe(Type eventType, IEventHandler handler)
Parameters
Unsubscribe(Type, IEventHandlerFactory)
Declaration
public override void Unsubscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Unsubscribe<TEvent>(Func<TEvent, Task>)
Declaration
public override void Unsubscribe<TEvent>(Func<TEvent, Task> action)
Parameters
Type |
Name |
Description |
Func<TEvent, Task> |
action |
|
Type Parameters
UnsubscribeAll(Type)
Declaration
public override void UnsubscribeAll(Type eventType)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
Implements
ISingletonDependency
Extension Methods