Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OwnEndpointServices"/> class.
 /// </summary>
 /// <param name="channel">The channel.</param>
 /// <param name="cloudBlobStorage">The cloud blob storage provider.</param>
 /// <param name="httpClient">The HTTP client.</param>
 /// <param name="endpointInboxFactory">The endpoint inbox factory.</param>
 public OwnEndpointServices(Channel channel, ICloudBlobStorageProvider cloudBlobStorage, HttpClient httpClient, IEndpointInboxFactory endpointInboxFactory)
 {
     this.Channel = channel;
     this.CloudBlobStorage = cloudBlobStorage;
     this.HttpClient = httpClient;
     this.EndpointInboxFactory = endpointInboxFactory;
 }
        public void SetUp()
        {
            var provider = new RelayCloudBlobStorageProvider(new Uri("http://localhost:39472/api/blob"));

            provider.HttpClient = new HttpClient(Mocks.HttpMessageHandlerRecorder.CreatePlayback());
            this.provider       = provider;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OwnEndpointServices"/> class.
 /// </summary>
 /// <param name="channel">The channel.</param>
 /// <param name="cloudBlobStorage">The cloud blob storage provider.</param>
 /// <param name="httpClient">The HTTP client.</param>
 /// <param name="endpointInboxFactory">The endpoint inbox factory.</param>
 public OwnEndpointServices(Channel channel, ICloudBlobStorageProvider cloudBlobStorage, HttpClient httpClient, IEndpointInboxFactory endpointInboxFactory)
 {
     this.Channel              = channel;
     this.CloudBlobStorage     = cloudBlobStorage;
     this.HttpClient           = httpClient;
     this.EndpointInboxFactory = endpointInboxFactory;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Channel"/> class.
 /// </summary>
 /// <param name="cloudBlobStorage">The cloud blob storage.</param>
 /// <param name="httpClient">The HTTP client.</param>
 /// <param name="httpClientLongPoll">The HTTP client long poll.</param>
 /// <param name="addressBooks">The address books.</param>
 public Channel(ICloudBlobStorageProvider cloudBlobStorage, HttpClient httpClient, HttpClient httpClientLongPoll, IEnumerable <AddressBook> addressBooks)
     : this()
 {
     this.CloudBlobStorage   = cloudBlobStorage;
     this.HttpClient         = httpClient;
     this.HttpClientLongPoll = httpClientLongPoll;
     this.AddressBooks       = addressBooks != null?addressBooks.ToList() : null;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Channel"/> class.
 /// </summary>
 /// <param name="cloudBlobStorage">The cloud blob storage.</param>
 /// <param name="httpClient">The HTTP client.</param>
 /// <param name="httpClientLongPoll">The HTTP client long poll.</param>
 /// <param name="addressBooks">The address books.</param>
 public Channel(ICloudBlobStorageProvider cloudBlobStorage, HttpClient httpClient, HttpClient httpClientLongPoll, IEnumerable<AddressBook> addressBooks)
     : this()
 {
     this.CloudBlobStorage = cloudBlobStorage;
     this.HttpClient = httpClient;
     this.HttpClientLongPoll = httpClientLongPoll;
     this.AddressBooks = addressBooks != null ? addressBooks.ToList() : null;
 }
 public RelayCloudBlobStorageProviderTests()
 {
     var provider = new RelayCloudBlobStorageProvider(new Uri("http://localhost:39472/api/blob"));
     this.messageRecorder = HttpMessageHandlerRecorder.CreatePlayback(typeof(RelayCloudBlobStorageProviderTests));
     var messageHandler = new ContentLengthVerifyingMockHandler(this.messageRecorder);
     provider.HttpClient = new HttpClient(messageHandler);
     this.provider = provider;
 }
        public RelayCloudBlobStorageProviderTests()
        {
            var provider = new RelayCloudBlobStorageProvider(new Uri("http://localhost:39472/api/blob"));

            this.messageRecorder = HttpMessageHandlerRecorder.CreatePlayback(typeof(RelayCloudBlobStorageProviderTests));
            var messageHandler = new ContentLengthVerifyingMockHandler(this.messageRecorder);

            provider.HttpClient = new HttpClient(messageHandler);
            this.provider       = provider;
        }
		public void SetUp() {
			var provider = new RelayCloudBlobStorageProvider(new Uri("http://localhost:39472/api/blob"));
			provider.HttpClient = new HttpClient(Mocks.HttpMessageHandlerRecorder.CreatePlayback());
			this.provider = provider;
		}