示例#1
0
        private void OnInactivityTimer(object state)
        {
            var separator = new SoapCsvMessageLoggerFields
            {
                Time                  = GetTime(),
                Location              = "-----##------",
                SoapAction            = "-----##------",
                RequestContentLength  = "-----##------",
                ResponseContentLength = "-----##------",
                RequestMiliseconds    = "-----##------"
            };

            this.LogMessage(separator);
        }
示例#2
0
        private void LogMessage(SoapCsvMessageLoggerFields data)
        {
            string messageText = string.Join(
                MessagePartSeparator,
                data.Time,
                data.Location,
                data.SoapAction,
                data.RequestContentLength,
                data.ResponseContentLength,
                data.RequestMiliseconds) + MessageSeparator;

            byte[] messageBytes = Encoding.UTF8.GetBytes(messageText);

            lock (syncLock)
            {
                this.logStream.Write(messageBytes, 0, messageBytes.Length);
                this.logStream.Flush();
            }
        }
示例#3
0
        private void OnInactivityTimer(object state)
        {
            var separator = new SoapCsvMessageLoggerFields
            {
                Time = GetTime(),
                Location = "-----##------",
                SoapAction = "-----##------",
                RequestContentLength = "-----##------",
                ResponseContentLength = "-----##------",
                RequestMiliseconds = "-----##------"
            };

            this.LogMessage(separator);
        }
示例#4
0
        private void LogMessage(SoapCsvMessageLoggerFields data)
        {
            string messageText = string.Join(
                MessagePartSeparator,
                data.Time,
                data.Location,
                data.SoapAction,
                data.RequestContentLength,
                data.ResponseContentLength,
                data.RequestMiliseconds) + MessageSeparator;

            byte[] messageBytes = Encoding.UTF8.GetBytes(messageText);

            lock (syncLock)
            {
                this.logStream.Write(messageBytes, 0, messageBytes.Length);
                this.logStream.Flush();
            }
        }