Beispiel #1
0
        public HandshakeEndResponse HandshakeEnd(HandshakeEndRequest handshakeEndRequest)
        {
            File.AppendAllText(@"c:\php_requests.log", "ipConverge.handshakeEnd " + handshakeEndRequest.reg_code + ", " + handshakeEndRequest.reg_product_id + "\r\n");

            using (var db = new CSSDataContext())
            {
                var ipConverge = GetIPConverge(db, handshakeEndRequest.reg_code, handshakeEndRequest.reg_product_id);

                ipConverge.Active = true;

                db.SubmitChanges();
            }

            File.AppendAllText(@"c:\php_requests.log", "ipConverge.handshakeEnd 2\r\n");

            return(new HandshakeEndResponse()
            {
                handshake_updated = 1
            });
        }
        public HandshakeEndResponse HandshakeEnd(HandshakeEndRequest handshakeEndRequest)
        {
            File.AppendAllText(@"c:\php_requests.log", "ipConverge.handshakeEnd " + handshakeEndRequest.reg_code + ", " + handshakeEndRequest.reg_product_id + "\r\n");

            using (var db = new CSSDataContext())
            {
                var ipConverge = GetIPConverge(db, handshakeEndRequest.reg_code, handshakeEndRequest.reg_product_id);

                ipConverge.Active = true;

                db.SubmitChanges();
            }

            File.AppendAllText(@"c:\php_requests.log", "ipConverge.handshakeEnd 2\r\n");

            return new HandshakeEndResponse()
            {
                handshake_updated = 1
            };
        }