Last post May 16, 2021 08:13 PM by bruce (sqlwork.com)
May 16, 2021 06:26 PM|vkagrawal|LINK
I am using .Net Core 3.1 and I want to log memory used in bytes while processing any request.
I have seen many examples for logging request and response body but did not find any on logging memory used in a request/response complete cycle using middleware. I would want to store memory used along with time the request/response took.
Is it possible with .Net core without any third party packages?
May 16, 2021 08:13 PM|bruce (sqlwork.com)|LINK
Use custom middleware to do this. Here is a sample for getting the data