예제 #1
0
 internal void InitializeFrom(MessageSecurityOverRelayHttp security)
 {
     if (security == null)
     {
         throw Microsoft.ServiceBus.Diagnostics.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
     }
     this.ClientCredentialType       = security.ClientCredentialType;
     this.NegotiateServiceCredential = security.NegotiateServiceCredential;
     if (security.WasAlgorithmSuiteSet)
     {
         this.AlgorithmSuite = security.AlgorithmSuite;
     }
 }
예제 #2
0
 internal void ApplyConfiguration(MessageSecurityOverRelayHttp security)
 {
     if (security == null)
     {
         throw Microsoft.ServiceBus.Diagnostics.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
     }
     security.ClientCredentialType       = this.ClientCredentialType;
     security.NegotiateServiceCredential = this.NegotiateServiceCredential;
     if (base.ElementInformation.Properties["algorithmSuite"].ValueOrigin != PropertyValueOrigin.Default)
     {
         security.AlgorithmSuite = this.AlgorithmSuite;
     }
 }