예제 #1
0
        public bool Logout(authTokenType token)
        {
            xmCryptoService client = new xmCryptoService();

            try
            {
                logout log = new logout();
                log.AuthToken = token;
                client.logout(log);
                return(true);
            }
            catch (Exception ex)
            {
                Log.Error("Error al intentar realizar logout: " + ex);
                return(false);
            }
            finally
            {
                client.Dispose();
                //if (client.State == CommunicationState.Faulted)
                //    client.Abort();
                //else
                //    client.Close();
            }
        }
예제 #2
0
        public static void Main()
        {
            search  s = new search();
            addcart a = new addcart();
            logout  n = new logout();

            Launchmethod();
            Login l = new Login();

            l.loginmethod();
            s.searchmethod();
            a.addcartmethod();
            n.logoutmethod();
        }
        public string Logout([FromBody] logout logout)
        {
            Main    objmain = new Main();
            DataSet ds      = new DataSet();

            try
            {
                ds = objmain.user_access_layer(logout.emailaddress.ToString(), "", "logout");
                if (ds.Tables[0].Rows.Count > 0)
                {
                    return("logout");
                }
            }
            catch (Exception)
            {
            }
            return("logout");
        }
예제 #4
0
 public System.IAsyncResult Beginlogout(logout logout, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("logout", new object[] {
                 logout}, callback, asyncState);
 }