PostSharp6.8//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Core Namespace

PostSharp.Patterns.Diagnostics.Adapters.AspNetCore Namespace

This namespace allows you to instrument incoming ASP.NET Core requests using PostSharp Logging.
Public classAspNetCoreLogging
Instruments the ASP.NET Core stack to define new logging activity (and possibly transactions) for incoming HTTP requests. This is implementation is based on DiagnosticListener and will capture all incoming requests.
Public classAspNetCoreRequestMetadata
The default implementation of LogEventMetadata and incoming ASP.NET Core requests. Exposes an AspNetCoreRequestExpressionModel to the policy configuration file.
Public classAspNetCoreRequestMetadata<T>
A base implementation of LogEventMetadata for ASP.NET Core incoming HTTP requests. You can derive from this class if you want to expose your own expression model. The default implementation is the non-generic AspNetCoreRequestMetadata, which exposes AspNetCoreRequestExpressionModel.
Public structureAspNetCoreRequestExpressionModel
Exposes an ASP.NET Core request to the transaction policy expressions (see OpenTransactionExpressionModel.Request and CloseTransactionExpressionModel.Request). The type attribute of the policy element must be set to AspNetCoreRequest to match requests of this class.