示例#1
0
        public void LogToDatabase(SoapMessage message, bool request)
        {
            string xml       = message.GetIndentedXml();
            string operation = message.GetOperationName();

            if (request)
            {
                string location = message.GetNodeValue(locationPath);

                if (location == null)
                {
                    return;
                }

                insertedID = LogRequest(this.origin, operation, xml, location);
            }
            else
            {
                if (insertedID == null)
                {
                    return;
                }

                LogResponse(xml, insertedID.Value);
            }
        }