示例#1
0
        public void RemoveAuthenticationMethod(DSMAuthenticationMethod method)
        {
            DSMAuthentication am = AuthenticationSection.TryGet(method);

            if (am != null)
            {
                AuthenticationSection.Remove(am);
            }
        }
示例#2
0
        public DSMAuthentication GetOrAddAuthenticationMethod(DSMAuthenticationMethod method)
        {
            DSMAuthentication am = AuthenticationSection.TryGet(method);

            if (am == null)
            {
                am = new DSMAuthentication(method);
                AuthenticationSection.Add(am);
            }
            return(am);
        }
示例#3
0
 public DSMAuthentication GetAuthenticationMethod(DSMAuthenticationMethod method)
 {
     return(AuthenticationSection.TryGet(method));
 }