Esempio n. 1
0
        public WnsServiceConnection(WnsConfiguration configuration, WnsAccessTokenManager accessTokenManager)
        {
            AccessTokenManager = accessTokenManager;
            Configuration      = configuration;

            http = new HttpClient();
            http.DefaultRequestHeaders.ExpectContinue = false; //Disable expect-100 to improve latency
        }
Esempio n. 2
0
 public WnsServiceConnection(WnsConfiguration configuration, WnsAccessTokenManager accessTokenManager)
 {
     AccessTokenManager = accessTokenManager;
     Configuration      = configuration;
 }
Esempio n. 3
0
 public WnsServiceConnectionFactory(WnsConfiguration configuration)
 {
     wnsAccessTokenManager = new WnsAccessTokenManager(configuration);
     Configuration         = configuration;
 }