コード例 #1
0
 public bool Upload(byte[] content)
 {
     try
     {
         var AuthResolver = new AuthenticationResolver(content);
         var fx           = AuthResolver.Resolve();
         AddAuthentication(AuthResolver);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
コード例 #2
0
 public void AddAuthentication(AuthenticationResolver authenticationResolver) => Authentications[authenticationResolver.Resolve().Token] = authenticationResolver;