/// <summary> /// Initializes a new instance of the ServiceClient class. /// </summary> public ServiceClient() { // Create our root handler HttpMessageHandler handler = _transportHandlerProvider.CreateHttpTransportHandler(); InitializeHttpClient(handler); }
/// <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()); }