示例#1
0
        public ServiceBusNotificationDequeue(ServiceBusConfiguration configuration)
        {
            _client = new Lazy <QueueClient>(() => InitializeClient(configuration));

            Tweets = Observable.Defer(() => _client.Value.ObserveReceivedMessages())
                     .Select(message => Mapper.Value.Map <Tweet>(message))
                     .Publish()
                     .RefCount();
        }
 public ServiceBusNotificationEnqueue(ServiceBusConfiguration configuration)
 => _client = new AsyncLazy <QueueClient>(() => InitializeClient(configuration));
示例#3
0
 private static QueueClient InitializeClient(ServiceBusConfiguration configureation)
 => new QueueClient(new ServiceBusConnectionStringBuilder(configureation.ConnectionString)
 {
     EntityPath = configureation.QueueName
 });