ServiceAuthenticationBehavior(ServiceAuthenticationBehavior other)
 {
     this.serviceAuthenticationManager = other.ServiceAuthenticationManager;
     this.authenticationSchemes = other.authenticationSchemes;
     this.isReadOnly = other.isReadOnly;
     this.isAuthenticationManagerSet = other.isAuthenticationManagerSet;
     this.isAuthenticationSchemesSet = other.isAuthenticationSchemesSet;
 }
Exemplo n.º 2
0
 internal SCTServiceAuthenticationManagerWrapper(ServiceAuthenticationManager wrappedServiceAuthManager)
 {
     if (wrappedServiceAuthManager == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wrappedServiceAuthManager");
     }
     this.wrappedAuthenticationManager = wrappedServiceAuthManager;
 }
 internal SCTServiceAuthenticationManagerWrapper(ServiceAuthenticationManager wrappedServiceAuthManager)
 {
     if (wrappedServiceAuthManager == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wrappedServiceAuthManager");
     }
     this.wrappedAuthenticationManager = wrappedServiceAuthManager;
 }
 internal ServiceAuthenticationManagerWrapper(ServiceAuthenticationManager wrappedServiceAuthManager, string[] actionUriFilter)
 {
     if (wrappedServiceAuthManager == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wrappedServiceAuthManager");
     }
     if ((actionUriFilter != null) && (actionUriFilter.Length > 0))
     {
         this.filteredActionUriCollection = new string[actionUriFilter.Length];
         for (int i = 0; i < actionUriFilter.Length; i++)
         {
             this.filteredActionUriCollection[i] = actionUriFilter[i];
         }
     }
     this.wrappedAuthenticationManager = wrappedServiceAuthManager;
 }
Exemplo n.º 5
0
 void IServiceBehavior.AddBindingParameters(System.ServiceModel.Description.ServiceDescription description, ServiceHostBase serviceHostBase, Collection <ServiceEndpoint> endpoints, BindingParameterCollection parameters)
 {
     if (parameters == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("parameters");
     }
     System.ServiceModel.ServiceAuthenticationManager manager = parameters.Find <System.ServiceModel.ServiceAuthenticationManager>();
     if (manager != null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(System.ServiceModel.SR.GetString("MultipleAuthenticationManagersInServiceBindingParameters", new object[] { manager })));
     }
     if (this.serviceAuthenticationManager != null)
     {
         parameters.Add(this.serviceAuthenticationManager);
     }
 }
Exemplo n.º 6
0
 internal ServiceAuthenticationManagerWrapper(ServiceAuthenticationManager wrappedServiceAuthManager, string[] actionUriFilter)
 {
     if (wrappedServiceAuthManager == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("wrappedServiceAuthManager");
     }
     if ((actionUriFilter != null) && (actionUriFilter.Length > 0))
     {
         this.filteredActionUriCollection = new string[actionUriFilter.Length];
         for (int i = 0; i < actionUriFilter.Length; i++)
         {
             this.filteredActionUriCollection[i] = actionUriFilter[i];
         }
     }
     this.wrappedAuthenticationManager = wrappedServiceAuthManager;
 }
 private ServiceAuthenticationBehavior(ServiceAuthenticationBehavior other)
 {
     this.serviceAuthenticationManager = other.ServiceAuthenticationManager;
     this.isReadOnly = other.isReadOnly;
 }
 private AuthenticationBehavior(ServiceAuthenticationManager authenticationManager)
 {
     this.serviceAuthenticationManager = authenticationManager;
 }
Exemplo n.º 9
0
 private ServiceAuthenticationBehavior(ServiceAuthenticationBehavior other)
 {
     this.serviceAuthenticationManager = other.ServiceAuthenticationManager;
     this.isReadOnly = other.isReadOnly;
 }