Esempio n. 1
0
 public Session Login(string email, string password, string developerKey, string applicationKey)
 {
   try
   {
     var client = new Tesco.SOAPServiceSoapClient();
     Tesco.Session session;
     client.Login(email, password, developerKey, applicationKey, out session);
     var key = Guid.NewGuid().ToString();
     sessions[key] = session;
     return new Session { Value = key };
   }
   catch
   {
     return new Session { Value = "N/A" };
   }
 }
 public Session Login(string email, string password, string developerKey, string applicationKey)
 {
     try
     {
         var           client = new Tesco.SOAPServiceSoapClient();
         Tesco.Session session;
         client.Login(email, password, developerKey, applicationKey, out session);
         var key = Guid.NewGuid().ToString();
         sessions[key] = session;
         return(new Session {
             Value = key
         });
     }
     catch
     {
         return(new Session {
             Value = "N/A"
         });
     }
 }