public void VerifyWebRequestHandlerCreation() { var someProvider = PortablePlatformAbstraction.Get <IHttpTransportHandlerProvider>(true); var webRequestHandler = someProvider.CreateHttpTransportHandler(); Assert.IsType <WebRequestHandler>(webRequestHandler); }
/// <summary> /// Initialize the ServiceClient class. /// </summary> static ServiceClient() { _transportHandlerProvider = PortablePlatformAbstraction.Get <IHttpTransportHandlerProvider>(true); }
/// <summary> /// Initializes static members of the <see cref="CloudConfiguration" /> class. /// Initializes platform-specific cloud configuration and credentials /// providers. /// </summary> static CloudConfiguration() { _cloudCredentialsProviders = new List <ICloudCredentialsProvider>(); PortablePlatformAbstraction.Get <ICloudConfigurationProvider>().RegisterDefaultCloudCredentialsProviders(); }