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

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