Beispiel #1
0
 public WebClientFactory(Uri serviceBusAddress, NetworkCredential credential)
 {
     _serviceBusAddress = serviceBusAddress;
     _tokenProvider = new WebTokenProvider(serviceBusAddress, credential);
     _requestFactory = new WebRequestFactory(_tokenProvider);
     _uriCreator = new UriCreator(serviceBusAddress);
 }
 public WebQueueValidator(Uri managementUri, IWebTokenProvider tokenProvider, IWebClient webClient)
 {
     _managementUri = managementUri;
     _webClient = webClient;
     _requestFactory = new WebRequestFactory(tokenProvider);
     _uriCreator = new UriCreator(managementUri);
 }
        public QueueMessagesApiTests()
        {
            Uri serviceBusUri = ServiceBusHelper.GetLocalHttpsEndpoint();
            _uriCreator = new UriCreator(serviceBusUri);
            _webClient =  new WebClientWrapper();

            string queueName = Guid.NewGuid().ToString();
            _queueUri = _uriCreator.GenerateQueueUri(queueName);
        }
        public TopicMessagesApiTests()
        {
            Uri serviceBusUri = ServiceBusHelper.GetLocalHttpsEndpoint();
            _uriCreator = new UriCreator(serviceBusUri);
            _webClient =  new WebClientWrapper();

            string topicName = Guid.NewGuid().ToString();
            _topicUri = _uriCreator.GenerateTopicUri(topicName);
        }
        public SubscriptionApiTests()
        {
            Uri serviceBusUri = ServiceBusHelper.GetLocalHttpsEndpoint();
            _uriCreator = new UriCreator(serviceBusUri);
            _webClient =  new WebClientWrapper();
            _requestFactory = ServiceBusHelper.GetWebRequestFactory();

            _topicName = Guid.NewGuid().ToString();
            _topicUri = _uriCreator.GenerateTopicUri(_topicName);

            _subscriptionName = Guid.NewGuid().ToString();
            _subscriptionUri = _uriCreator.GenerateSubscriptionUri(_topicName, _subscriptionName);
        }