Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the ServiceClient class.
        /// </summary>
        public ServiceClient()
        {
            // Create our root handler
            HttpMessageHandler handler = _transportHandlerProvider.CreateHttpTransportHandler();

            InitializeHttpClient(handler);
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the ServiceClient class.
        /// </summary>
        public ServiceClient()
        {
            // Create our root handler
            HttpMessageHandler handler = _transportHandlerProvider.CreateHttpTransportHandler();

            _handler = new DisposableReference <HttpMessageHandler>(handler);

            // Create the HTTP client
            HttpClient = CreateHttpClient();
        }
 /// <summary>
 /// Initializes a new instance of the ServiceClient class.
 /// </summary>
 public ServiceClient()
 {
     this.InitializeHttpClient(_transportHandlerProvider.CreateHttpTransportHandler());
 }