protected override async Task OutgoingMessageAsync(string correlationId, string requestInfo, byte[] message, Stopwatch timeRequest) { await Task.Run(() => { //Debug.WriteLine(string.Format("{0} - Response (ms):{1} - {2}\r\n{3}", correlationId, timeRequest.ElapsedMilliseconds, requestInfo, Encoding.UTF8.GetString(message))); ElmahUtils.LogSuccessToElmah(string.Format("{0} - Response (ms):{1} - {2}\r\n{3}", correlationId, timeRequest.ElapsedMilliseconds, requestInfo, Encoding.UTF8.GetString(message))); }); }
protected override async Task IncommingMessageAsync(string correlationId, string requestInfo, byte[] message, string authorization) { await Task.Run(() => { //Debug.WriteLine(string.Format("{0} - Request: {1}\r\n{2}", correlationId, requestInfo, Encoding.UTF8.GetString(message))); //Debug.WriteLine(string.Format("Token {0}", authorization)); ElmahUtils.LogSuccessToElmah(string.Format("{0} - Request: {1}\r\n{2}\r\n{3}", correlationId, requestInfo, Encoding.UTF8.GetString(message), authorization)); }); }