protected MyClientCredentials(MyClientCredentials other)
     : base(other)
 {
     _clientEncryptingCert  = other._clientEncryptingCert;
     _clientSigningCert     = other._clientSigningCert;
     _serviceEncryptingCert = other._serviceEncryptingCert;
     _serviceSigningCert    = other._serviceSigningCert;
 }
 protected MyClientCredentials(MyClientCredentials other)
     : base(other)
 {
     _clientEncryptingCert = other._clientEncryptingCert;
     _clientSigningCert = other._clientSigningCert;
     _serviceEncryptingCert = other._serviceEncryptingCert;
     _serviceSigningCert = other._serviceSigningCert;
 }
 private void SetCredentials(ChannelFactory factory)
 {
     var credentials = new MyClientCredentials();
     credentials.ClientEncryptingCertificate = _difiGatewaySettings.ServiceCertificate;
     credentials.ClientSigningCertificate = _difiGatewaySettings.ClientCertificate;
     credentials.ServiceEncryptingCertificate = _difiGatewaySettings.ServiceCertificate;
     credentials.ServiceSigningCertificate = _difiGatewaySettings.ClientCertificate;
     factory.Endpoint.Behaviors.Remove(typeof(ClientCredentials));
     factory.Endpoint.Behaviors.Add(credentials);
 }
 public MyClientCredentialsSecurityTokenManager(
     MyClientCredentials credentials)
     : base(credentials)
 {
     _credentials = credentials;
 }
Exemple #5
0
 public MyClientCredentialsSecurityTokenManager(
     MyClientCredentials credentials)
     : base(credentials)
 {
     _credentials = credentials;
 }