Exemple #1
0
 internal WindowsServiceCredential(WindowsServiceCredential other)
 {
     this.includeWindowsGroups = true;
     this.allowAnonymousLogons = other.allowAnonymousLogons;
     this.includeWindowsGroups = other.includeWindowsGroups;
     this.isReadOnly           = other.isReadOnly;
 }
 internal WindowsServiceCredential(WindowsServiceCredential other)
 {
     this.includeWindowsGroups = true;
     this.allowAnonymousLogons = other.allowAnonymousLogons;
     this.includeWindowsGroups = other.includeWindowsGroups;
     this.isReadOnly = other.isReadOnly;
 }
 internal void ApplyConfiguration(WindowsServiceCredential windows)
 {
     if (windows == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("windows");
     }
     windows.AllowAnonymousLogons = this.AllowAnonymousLogons;
     windows.IncludeWindowsGroups = this.IncludeWindowsGroups;
 }
 public ServiceCredentials()
 {
     this.userName = new UserNamePasswordServiceCredential();
     this.clientCertificate = new X509CertificateInitiatorServiceCredential();
     this.serviceCertificate = new X509CertificateRecipientServiceCredential();
     this.windows = new WindowsServiceCredential();
     this.issuedToken = new IssuedTokenServiceCredential();
     this.peer = new PeerCredential();
     this.secureConversation = new SecureConversationServiceCredential();
 }
 protected ServiceCredentials(ServiceCredentials other)
 {
     if (other == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("other");
     }
     this.userName = new UserNamePasswordServiceCredential(other.userName);
     this.clientCertificate = new X509CertificateInitiatorServiceCredential(other.clientCertificate);
     this.serviceCertificate = new X509CertificateRecipientServiceCredential(other.serviceCertificate);
     this.windows = new WindowsServiceCredential(other.windows);
     this.issuedToken = new IssuedTokenServiceCredential(other.issuedToken);
     this.peer = new PeerCredential(other.peer);
     this.secureConversation = new SecureConversationServiceCredential(other.secureConversation);
 }