Example #1
0
        public void VerifyWebRequestHandlerCreation()
        {
            var someProvider      = PortablePlatformAbstraction.Get <IHttpTransportHandlerProvider>(true);
            var webRequestHandler = someProvider.CreateHttpTransportHandler();

            Assert.IsType <WebRequestHandler>(webRequestHandler);
        }
Example #2
0
 /// <summary>
 /// Initialize the ServiceClient class.
 /// </summary>
 static ServiceClient()
 {
     _transportHandlerProvider = PortablePlatformAbstraction.Get <IHttpTransportHandlerProvider>(true);
 }
Example #3
0
        /// <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();
        }