public BrainstormTopicSender(ITopicClientConfiguration configuration) : base(configuration) { this.topicClient = new Lazy <ITopicClient>(() => new TopicClient( configuration.ConnectionString, configuration.TopicName, RetryConfiguration.Create(configuration.RetryStrategy))); this.Sender = this.topicClient.Value; }
public BrainstormQueueSender(IQueueClientConfiguration configuration) : base(configuration) { this.queueClient = new Lazy <IQueueClient>(() => new QueueClient( configuration.ConnectionString, configuration.QueueName, ReceiveModeConverter.Convert(configuration.ReceiveMode), RetryConfiguration.Create(configuration.RetryStrategy))); this.Sender = this.queueClient.Value; }
public BrainstormSubscriptionReceiver(ITopicClientConfiguration configuration) : base(configuration) { this.subscriptionClient = new Lazy <ISubscriptionClient>(() => new SubscriptionClient( configuration.ConnectionString, configuration.TopicName, configuration.SubscriptionName, ReceiveModeConverter.Convert(configuration.ReceiveMode), RetryConfiguration.Create(configuration.RetryStrategy))); this.Receiver = this.subscriptionClient.Value; }