public AzureQueueAdapter( IQueueDataAdapter <string, IBatchContainer> dataAdapter, IAzureStreamQueueMapper streamQueueMapper, ILoggerFactory loggerFactory, AzureQueueOptions queueOptions, string serviceId, string providerName) { this.queueOptions = queueOptions; ServiceId = serviceId; Name = providerName; this.streamQueueMapper = streamQueueMapper; this.dataAdapter = dataAdapter; this.loggerFactory = loggerFactory; }
public AzureQueueAdapterFactory( string name, AzureQueueOptions options, SimpleQueueCacheOptions cacheOptions, IQueueDataAdapter <string, IBatchContainer> dataAdapter, IOptions <ClusterOptions> clusterOptions, ILoggerFactory loggerFactory) { this.providerName = name; this.options = options ?? throw new ArgumentNullException(nameof(options)); this.dataAdapter = dataAdapter ?? throw new ArgumentNullException(nameof(dataAdapter));; this.clusterOptions = clusterOptions.Value; this.loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); this.streamQueueMapper = new AzureStreamQueueMapper(options.QueueNames, providerName); this.adapterCache = new SimpleQueueAdapterCache(cacheOptions, this.providerName, this.loggerFactory); }
public AzureQueueAdapter( TDataAdapter dataAdapter, SerializationManager serializationManager, IAzureStreamQueueMapper streamQueueMapper, ILoggerFactory loggerFactory, AzureQueueOptions queueOptions, string serviceId, string providerName) { this.serializationManager = serializationManager; this.queueOptions = queueOptions; ServiceId = serviceId; Name = providerName; this.streamQueueMapper = streamQueueMapper; this.dataAdapter = dataAdapter; this.loggerFactory = loggerFactory; }
public AzureQueueAdapterFactory( string name, AzureQueueOptions options, SimpleQueueCacheOptions cacheOptions, IServiceProvider serviceProvider, IOptions <ClusterOptions> clusterOptions, SerializationManager serializationManager, ILoggerFactory loggerFactory) { this.providerName = name; this.options = options ?? throw new ArgumentNullException(nameof(options)); this.clusterOptions = clusterOptions.Value; this.SerializationManager = serializationManager ?? throw new ArgumentNullException(nameof(serializationManager)); this.loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); this.dataAadaptorFactory = () => ActivatorUtilities.GetServiceOrCreateInstance <TDataAdapter>(serviceProvider); this.streamQueueMapper = new AzureStreamQueueMapper(options.QueueNames, providerName); this.adapterCache = new SimpleQueueAdapterCache(cacheOptions, this.providerName, this.loggerFactory); }