public static AuthenticationProperties SetQQConncetSignInParams( this AuthenticationProperties authenticationProperties, QQConnectSignInParams qqConnectSignInParams) { if (authenticationProperties == null) { throw new ArgumentNullException(nameof(authenticationProperties)); } authenticationProperties.Dictionary.SetQQConncetSignInParams(qqConnectSignInParams); return(authenticationProperties); }
public static QQConnectSignInParams GetQQConncetSignInParams(this IDictionary <string, string> dictionary) { if (dictionary == null) { throw new ArgumentNullException(nameof(dictionary)); } if (dictionary.ContainsKey(QQConnectSignInParams.Key) == false) { return(null); } return(QQConnectSignInParams.From(dictionary[QQConnectSignInParams.Key])); }
public static void SetQQConncetSignInParams(this IDictionary <string, string> dictionary, QQConnectSignInParams qqConnectSignInParams) { if (dictionary == null) { throw new ArgumentNullException(nameof(dictionary)); } if (qqConnectSignInParams == null) { throw new ArgumentNullException(nameof(qqConnectSignInParams)); } dictionary[QQConnectSignInParams.Key] = qqConnectSignInParams.ToString(); }