Class RabbitMqDistributedEventBus
Inheritance
RabbitMqDistributedEventBus
Assembly: Volo.Abp.EventBus.RabbitMQ.dll
Syntax
[Dependency(ReplaceServices = true)]
[ExposeServices(new Type[] { typeof(IDistributedEventBus), typeof(RabbitMqDistributedEventBus) })]
public class RabbitMqDistributedEventBus : DistributedEventBusBase, IDistributedEventBus, IEventBus, ISupportsEventBoxes, ISingletonDependency
Constructors
RabbitMqDistributedEventBus(IOptions<AbpRabbitMqEventBusOptions>, IConnectionPool, IRabbitMqSerializer, IServiceScopeFactory, IOptions<AbpDistributedEventBusOptions>, IRabbitMqMessageConsumerFactory, ICurrentTenant, IUnitOfWorkManager, IGuidGenerator, IClock, IEventHandlerInvoker, ILocalEventBus, ICorrelationIdProvider)
Declaration
public RabbitMqDistributedEventBus(IOptions<AbpRabbitMqEventBusOptions> options, IConnectionPool connectionPool, IRabbitMqSerializer serializer, IServiceScopeFactory serviceScopeFactory, IOptions<AbpDistributedEventBusOptions> distributedEventBusOptions, IRabbitMqMessageConsumerFactory messageConsumerFactory, ICurrentTenant currentTenant, IUnitOfWorkManager unitOfWorkManager, IGuidGenerator guidGenerator, IClock clock, IEventHandlerInvoker eventHandlerInvoker, ILocalEventBus localEventBus, ICorrelationIdProvider correlationIdProvider)
Parameters
Properties
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
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
AddToUnitOfWork(IUnitOfWork, UnitOfWorkEventRecord)
Declaration
protected override void AddToUnitOfWork(IUnitOfWork unitOfWork, UnitOfWorkEventRecord eventRecord)
Parameters
Overrides
GetHandlerFactories(Type)
Declaration
protected override IEnumerable<EventBusBase.EventTypeWithEventHandlerFactories> GetHandlerFactories(Type eventType)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
Returns
Overrides
Initialize()
Declaration
OnAddToOutboxAsync(string, Type, object)
Declaration
protected override Task OnAddToOutboxAsync(string eventName, Type eventType, object eventData)
Parameters
Returns
Overrides
ProcessFromInboxAsync(IncomingEventInfo, InboxConfig)
Declaration
public override Task ProcessFromInboxAsync(IncomingEventInfo incomingEvent, InboxConfig inboxConfig)
Parameters
Returns
Overrides
PublishAsync(IModel, string, byte[], Dictionary<string, object>?, Guid?, string?)
Declaration
protected virtual Task PublishAsync(IModel channel, string eventName, byte[] body, Dictionary<string, object>? headersArguments = null, Guid? eventId = null, string? correlationId = null)
Parameters
Returns
PublishAsync(string, byte[], Dictionary<string, object>?, Guid?, string?)
Declaration
protected virtual Task PublishAsync(string eventName, byte[] body, Dictionary<string, object>? headersArguments = null, Guid? eventId = null, string? correlationId = null)
Parameters
Returns
PublishAsync(Type, object, Dictionary<string, object>?, Guid?, string?)
Declaration
public virtual Task PublishAsync(Type eventType, object eventData, Dictionary<string, object>? headersArguments = null, Guid? eventId = null, string? correlationId = null)
Parameters
Returns
PublishFromOutboxAsync(OutgoingEventInfo, OutboxConfig)
Declaration
public override Task PublishFromOutboxAsync(OutgoingEventInfo outgoingEvent, OutboxConfig outboxConfig)
Parameters
Returns
Overrides
PublishManyFromOutboxAsync(IEnumerable<OutgoingEventInfo>, OutboxConfig)
Declaration
public override Task PublishManyFromOutboxAsync(IEnumerable<OutgoingEventInfo> outgoingEvents, OutboxConfig outboxConfig)
Parameters
Returns
Overrides
PublishToEventBusAsync(Type, object)
Declaration
protected override Task PublishToEventBusAsync(Type eventType, object eventData)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
object |
eventData |
|
Returns
Overrides
Serialize(object)
Declaration
protected override byte[] Serialize(object eventData)
Parameters
Type |
Name |
Description |
object |
eventData |
|
Returns
Overrides
Subscribe(Type, IEventHandlerFactory)
Declaration
public override IDisposable Subscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Returns
Overrides
Unsubscribe(Type, IEventHandler)
Declaration
public override void Unsubscribe(Type eventType, IEventHandler handler)
Parameters
Overrides
Unsubscribe(Type, IEventHandlerFactory)
Declaration
public override void Unsubscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Overrides
UnsubscribeAll(Type)
Declaration
public override void UnsubscribeAll(Type eventType)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
Overrides
Unsubscribe<TEvent>(Func<TEvent, Task>)
Declaration
public override void Unsubscribe<TEvent>(Func<TEvent, Task> action) where TEvent : class
Parameters
Type |
Name |
Description |
Func<TEvent, Task> |
action |
|
Type Parameters
Overrides
Implements
Extension Methods