| | |
| | | if (requestReader.BaseStream.Length != 0) |
| | | requestContent = requestReader.ReadToEnd(); |
| | | } |
| | | if (httpContext.Request.RouteValues["controller"].ToString().ToLower() == "upapi"|| httpContext.Request.RouteValues["controller"].ToString().ToLower() == "downapi") |
| | | try |
| | | { |
| | | diagnosticContext.Set("ExternalSystems", true); |
| | | if (httpContext.Request.RouteValues["controller"] != null) |
| | | { |
| | | if (httpContext.Request.RouteValues["controller"].ToString().ToLower() == "upapi" || httpContext.Request.RouteValues["controller"].ToString().ToLower() == "downapi") |
| | | { |
| | | diagnosticContext.Set("ExternalSystems", true); |
| | | } |
| | | else |
| | | { |
| | | diagnosticContext.Set("ExternalSystems", false); |
| | | } |
| | | } |
| | | diagnosticContext.Set("_RequestBody", requestContent); |
| | | diagnosticContext.Set("_Service", AppDomain.CurrentDomain.FriendlyName); |
| | | } |
| | | else |
| | | catch (Exception) |
| | | { |
| | | diagnosticContext.Set("ExternalSystems", false); |
| | | |
| | | } |
| | | diagnosticContext.Set("_RequestBody", requestContent); |
| | | diagnosticContext.Set("_Service", AppDomain.CurrentDomain.FriendlyName); |
| | | }; |
| | | }); |
| | | |