コード例 #1
0
 static void ConfigureAuthentication(HttpTransportBindingElement http, HttpTransportSecurity transportSecurity)
 {
     transportSecurity.clientCredentialType = HttpClientCredentialTypeHelper.MapToClientCredentialType(http.AuthenticationScheme);
     transportSecurity.realm = http.Realm;
     transportSecurity.extendedProtectionPolicy = http.ExtendedProtectionPolicy;
 }
コード例 #2
0
 void ConfigureAuthentication(HttpTransportBindingElement http)
 {
     http.AuthenticationScheme = HttpClientCredentialTypeHelper.MapToAuthenticationScheme(clientCredentialType);
     http.Realm = Realm;
     http.ExtendedProtectionPolicy = extendedProtectionPolicy;
 }