This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public async Task Invoke(HttpContext context) | |
| { | |
| try | |
| { | |
| await this.next(context); | |
| } | |
| catch (Exception ex) | |
| { | |
| await HandleExceptionAsync(context, ex); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ExceptionLogEntry | |
| { | |
| public DateTime? Timestamp { get; set; } | |
| public string User { get; set; } | |
| public string RequestUri { get; set; } | |
| public string RequestMethod { get; set; } | |
| public string ExceptionType { get; set; } | |
| public string ExceptionMessage { get; set; } | |
| public string RequestIpAddress { get; set; } | |
| public int RequestThreadId { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public async Task Invoke(HttpContext context) | |
| { | |
| Stopwatch stopWatch = Stopwatch.StartNew(); | |
| LogEntry logEntry = new LogEntry | |
| { | |
| Timestamp = DateTime.Now | |
| // Set the other request related LogEntry attributes... | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class LogEntry | |
| { | |
| public DateTime? Timestamp { get; set; } | |
| public string User { get; set; } | |
| public string RequestUri { get; set; } | |
| public string RequestMethod { get; set; } | |
| public string RequestIpAddress { get; set; } | |
| public int RequestThreadId { get; set; } | |
| public string RequestContentType { get; set; } | |
| public string RequestContentBody { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To solve the issue "unable to find valid certification path to requested target", I had to do the following: | |
| 1) Adding Success Factors cert to the keystore: C:\sapjvm_6\jre\lib\security>keytool -import -storepass changeit -file _.success factors.com.cer -keystore cacerts -alias _.successfactors.com | |
| 2) Replacing server JRE 6 "C:\sapjvm_6\jre\lib\security\cacerts" with local JRE 8 "C:\jdk-8u121\jre\lib\security\cacerts" | |
| "keystore" (http://keystore-explorer.org/) is a tool that can also be used to open a cacerts file and import/export .cer files into/from it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| telnet [smtp-server-name] [port-number] | |
| HELO [source-host-name] | |
| MAIL from: [from-mail-address] | |
| RCPT to: [to-mail-address] | |
| DATA | |
| subject: this is a test message | |
| sending a test message via telnet | |
| . |