public AzureQueueAdapter( TDataAdapter dataAdapter, SerializationManager serializationManager, HashRingBasedStreamQueueMapper streamQueueMapper, string dataConnectionString, string deploymentId, string providerName, TimeSpan?messageVisibilityTimeout = null) { if (string.IsNullOrEmpty(dataConnectionString)) { throw new ArgumentNullException(nameof(dataConnectionString)); } if (string.IsNullOrEmpty(deploymentId)) { throw new ArgumentNullException(nameof(deploymentId)); } this.serializationManager = serializationManager; DataConnectionString = dataConnectionString; DeploymentId = deploymentId; Name = providerName; MessageVisibilityTimeout = messageVisibilityTimeout; this.streamQueueMapper = streamQueueMapper; this.dataAdapter = dataAdapter; }
private AzureQueueAdapterReceiver(SerializationManager serializationManager, string azureQueueName, ILoggerFactory loggerFactory, AzureQueueDataManager queue, IAzureQueueDataAdapter dataAdapter) { this.azureQueueName = azureQueueName ?? throw new ArgumentNullException(nameof(azureQueueName)); this.serializationManager = serializationManager; this.queue = queue ?? throw new ArgumentNullException(nameof(queue)); this.dataAdapter = dataAdapter ?? throw new ArgumentNullException(nameof(dataAdapter)); this.logger = loggerFactory.CreateLogger <AzureQueueAdapterReceiver>(); this.pending = new List <PendingDelivery>(); }
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; }
private AzureQueueAdapterReceiver(QueueId queueId, AzureQueueDataManager queue, IAzureQueueDataAdapter dataAdapter) { if (queueId == null) { throw new ArgumentNullException(nameof(queueId)); } if (queue == null) { throw new ArgumentNullException(nameof(queue)); } if (dataAdapter == null) { throw new ArgumentNullException(nameof(queue)); } Id = queueId; this.queue = queue; this.dataAdapter = dataAdapter; this.logger = LogManager.GetLogger(GetType().Name, LoggerType.Provider); this.pending = new List <PendingDelivery>(); }
private AzureQueueAdapterReceiver(SerializationManager serializationManager, ILoggerFactory loggerFactory, QueueId queueId, AzureQueueDataManager queue, IAzureQueueDataAdapter dataAdapter) { if (queueId == null) { throw new ArgumentNullException(nameof(queueId)); } if (queue == null) { throw new ArgumentNullException(nameof(queue)); } if (dataAdapter == null) { throw new ArgumentNullException(nameof(queue)); } Id = queueId; this.serializationManager = serializationManager; this.queue = queue; this.dataAdapter = dataAdapter; this.logger = loggerFactory.CreateLogger <AzureQueueAdapterReceiver>(); this.pending = new List <PendingDelivery>(); }
public static IQueueAdapterReceiver Create(SerializationManager serializationManager, QueueId queueId, string dataConnectionString, string deploymentId, IAzureQueueDataAdapter dataAdapter, TimeSpan?messageVisibilityTimeout = null) { if (queueId == null) { throw new ArgumentNullException(nameof(queueId)); } if (string.IsNullOrEmpty(dataConnectionString)) { throw new ArgumentNullException(nameof(dataConnectionString)); } if (string.IsNullOrEmpty(deploymentId)) { throw new ArgumentNullException(nameof(deploymentId)); } if (dataAdapter == null) { throw new ArgumentNullException(nameof(dataAdapter)); } if (serializationManager == null) { throw new ArgumentNullException(nameof(serializationManager)); } var queue = new AzureQueueDataManager(queueId.ToString(), deploymentId, dataConnectionString, messageVisibilityTimeout); return(new AzureQueueAdapterReceiver(serializationManager, queueId, queue, dataAdapter)); }
public static IQueueAdapterReceiver Create(SerializationManager serializationManager, ILoggerFactory loggerFactory, string azureQueueName, string dataConnectionString, IAzureQueueDataAdapter dataAdapter, TimeSpan?messageVisibilityTimeout = null) { if (azureQueueName == null) { throw new ArgumentNullException(nameof(azureQueueName)); } if (string.IsNullOrEmpty(dataConnectionString)) { throw new ArgumentNullException(nameof(dataConnectionString)); } if (dataAdapter == null) { throw new ArgumentNullException(nameof(dataAdapter)); } if (serializationManager == null) { throw new ArgumentNullException(nameof(serializationManager)); } var queue = new AzureQueueDataManager(loggerFactory, azureQueueName, dataConnectionString, messageVisibilityTimeout); return(new AzureQueueAdapterReceiver(serializationManager, azureQueueName, loggerFactory, queue, dataAdapter)); }