예제 #1
0
        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;
        }
예제 #2
0
        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;
        }