public virtual void HandleBody(byte[] body, bool request) { SoapLoggerTools.WriteFileDefault(body, request, _settings.LogPath, _settings.SaveOriginalBinaryBody); if (!_settings.UseCustomHandler && _settings.IsClient && request) { SoapLoggerClient.CallCustomHandlersDisabledCallback(_settings); } }
//Debug.QuickWatch: Encoding.UTF8.GetString(body) internal void HandleBody(byte[] body, bool request) { if (settings.IsService && request) { SoapLoggerService.SetSettings(settings); } if (settings.IsService && !request) { var requestException = SoapLoggerService.GetRequestException(); if (requestException != null) { throw requestException; } } if (settings.UseCustomHandler) { if (request) { HandleRequest(body); } else { HandleResponse(body); } } else { if (settings.IsClient && request) { SoapLoggerClient.CallCustomHandlersDisabledCallback(settings); } //default handler SoapLoggerTools.WriteFileDefault(body, request, settings.LogPath); } }