コード例 #1
0
 public static AuthenticationProperties SetQQConncetSignInParams(
     this AuthenticationProperties authenticationProperties,
     QQConnectSignInParams qqConnectSignInParams)
 {
     if (authenticationProperties == null)
     {
         throw new ArgumentNullException(nameof(authenticationProperties));
     }
     authenticationProperties.Dictionary.SetQQConncetSignInParams(qqConnectSignInParams);
     return(authenticationProperties);
 }
コード例 #2
0
 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]));
 }
コード例 #3
0
        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();
        }