Browse Source

Update AzureDistributedEventBus.cs

pull/8375/head
maliming 5 years ago
committed by GitHub
parent
commit
159bc23f2d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      framework/src/Volo.Abp.EventBus.Azure/Volo/Abp/EventBus/Azure/AzureDistributedEventBus.cs

6
framework/src/Volo.Abp.EventBus.Azure/Volo/Abp/EventBus/Azure/AzureDistributedEventBus.cs

@ -26,16 +26,16 @@ namespace Volo.Abp.EventBus.Azure
private readonly ConcurrentDictionary<Type, List<IEventHandlerFactory>> _handlerFactories; private readonly ConcurrentDictionary<Type, List<IEventHandlerFactory>> _handlerFactories;
private readonly ConcurrentDictionary<string, Type> _eventTypes; private readonly ConcurrentDictionary<string, Type> _eventTypes;
private IAzureServiceBusMessageConsumer _consumer; private IAzureServiceBusMessageConsumer _consumer;
public AzureDistributedEventBus( public AzureDistributedEventBus(
IServiceScopeFactory serviceScopeFactory, IServiceScopeFactory serviceScopeFactory,
ICurrentTenant currentTenant, ICurrentTenant currentTenant,
IEventErrorHandler errorHandler,
IOptions<AbpAzureEventBusOptions> abpAzureEventBusOptions, IOptions<AbpAzureEventBusOptions> abpAzureEventBusOptions,
IOptions<AbpDistributedEventBusOptions> abpDistributedEventBusOptions, IOptions<AbpDistributedEventBusOptions> abpDistributedEventBusOptions,
IAzureServiceBusSerializer serializer, IAzureServiceBusSerializer serializer,
IAzureServiceBusMessageConsumerFactory messageConsumerFactory, IAzureServiceBusMessageConsumerFactory messageConsumerFactory,
IPublisherPool publisherPool) IPublisherPool publisherPool)
: base(serviceScopeFactory, currentTenant) : base(serviceScopeFactory, currentTenant, errorHandler)
{ {
_options = abpAzureEventBusOptions.Value; _options = abpAzureEventBusOptions.Value;
_distributedEventBusOptions = abpDistributedEventBusOptions.Value; _distributedEventBusOptions = abpDistributedEventBusOptions.Value;
@ -186,4 +186,4 @@ namespace Volo.Abp.EventBus.Azure
); );
} }
} }
} }

Loading…
Cancel
Save