public ServiceBusSender(IConfigureServiceBus configure) { _connectionStringServiceBus = configure.ConnectionStringServiceBus; _connectionStringBlobStorage = configure.ConnectionStringBlobStorage; _queueName = configure.QueueName; _containerName = configure.ContainerName; _queueClient = new Microsoft.Azure.ServiceBus.QueueClient(_connectionStringServiceBus, _queueName); _container = new BlobContainerClient(_connectionStringBlobStorage, _containerName); _container.CreateIfNotExists(); }
public ServiceBusConsumer(IConfigureServiceBus configure, SerializationService serializationService) { _connectionStringServiceBus = configure.ConnectionStringServiceBus; _queueName = configure.QueueName; _serializationService = serializationService; _connectionStringBlobStorage = configure.ConnectionStringBlobStorage; _containerName = configure.ContainerName; _queueClient = new QueueClient(_connectionStringServiceBus, _queueName); _container = new BlobContainerClient(_connectionStringBlobStorage, _containerName); }