示例#1
0
 public static async Task<Operator> Authenticate(string email, string password)
 {
     var commu = new Communicator();
     if (await commu.Authenticate(email, password))
     {
         // succeeded
         return new Operator(commu);
     }
     else
     {
         return null;
     }
 }
示例#2
0
 private Operator(Communicator commu)
 {
     scm = commu;
 }