Пример #1
0
 private UserAuthenticator(AssemblaAuthenticatorOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _options = options;
 }
Пример #2
0
        public static AssemblaAuthenticator FromUserKeys(string apiKey, string secretKey)
        {
            var authenticatorOptions = new AssemblaAuthenticatorOptions
            {
                ApiKey       = apiKey,
                ApiSecretKey = secretKey
            };

            return(new UserAuthenticator(authenticatorOptions));
        }