public void RemoveAuthenticationMethod(DSMAuthenticationMethod method) { if (AuthenticationSection.ContainsKey(method)) { AuthenticationSection.Remove(AuthenticationSection[method]); } }
public DSMAuthentication UpdateAuthenticationMethod(DSMAuthenticationMethod method, bool add) { if (!add) { RemoveAuthenticationMethod(method); } return(add ? GetOrAddAuthenticationMethod(method) : null); }
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) { if (AuthenticationSection.ContainsKey(method)) { return(AuthenticationSection[method]); } else { return(null); } }
public DSMAuthentication GetOrAddAuthenticationMethod(DSMAuthenticationMethod method) { if (AuthenticationSection.ContainsKey(method)) { return(AuthenticationSection[method]); } else { var added = new DSMAuthentication(method); AuthenticationSection.Add(added); return(added); } }
public bool HasAuthenticationMethod(DSMAuthenticationMethod method) { return(AuthenticationSection.ContainsKey(method)); }
public DSMAuthentication GetAuthenticationMethod(DSMAuthenticationMethod method) { return(AuthenticationSection.TryGet(method)); }
public DSMAuthentication(DSMAuthenticationMethod method) : this() { Method = method; }