How can I get collection of properties current LogContext in ASP.NET Core custom Middleware? I push property in Middleware like this:
var profile = context.Request.Host.Host;
using (LogContext.PushProperty("TestProp", "MyCustomProp"))
using (LogContext.PushProperty("Profile", profile))
{
await _next(context);
}
Then I want to get the whole collection of properties, how can I do that?