Ejemplo n.º 1
0
        private void EnsureValidRequest(ProcessBaseRequest processRequest)
        {
            using (var db = new CSSDataContext())
            {
                var ipConverge = GetIPConverge(db, processRequest.auth_key, processRequest.product_id);

                if (ipConverge == null)
                {
                    throw new XmlRpcFaultException(500, "Invalid request.");
                }
            }
        }
        private void EnsureValidRequest(ProcessBaseRequest processRequest)
        {
            using (var db = new CSSDataContext())
            {
                var ipConverge = GetIPConverge(db, processRequest.auth_key, processRequest.product_id);

                if (ipConverge == null)
                    throw new XmlRpcFaultException(500, "Invalid request.");
            }
        }