public void RemoveAuthenticationMethod(DSMAuthenticationMethod method) { DSMAuthentication am = AuthenticationSection.TryGet(method); if (am != null) { AuthenticationSection.Remove(am); } }
public DSMAuthentication GetOrAddAuthenticationMethod(DSMAuthenticationMethod method) { DSMAuthentication am = AuthenticationSection.TryGet(method); if (am == null) { am = new DSMAuthentication(method); AuthenticationSection.Add(am); } return(am); }
public DSMAuthentication GetAuthenticationMethod(DSMAuthenticationMethod method) { return(AuthenticationSection.TryGet(method)); }