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

PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework Namespace

This namespace allows you to instrument incoming HTTP requests with a legacy IIS-based ASP.NET application and PostSharp Logging.
Public classAspNetFrameworkRequestMetadata
The default implementation of LogEventMetadata and incoming legacy ASP.NET requests. Exposes an AspNetFrameworkRequestExpressionModel to the policy configuration file.
Public classAspNetFrameworkRequestMetadata<T>
A base implementation of LogEventMetadata for legacy ASP.NET 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 AspNetFrameworkRequestMetadata, which exposes AspNetFrameworkRequestExpressionModel.
Public classPostSharpLoggingHttpModule
An IHttpModule that defines a PostSharp Logging activity (and possibly a transaction) for incoming HTTP requests. This module can be added as such to web.config. It can also be derived in a custom class, which allows to override the LogEventMetadata. The default implementation is AspNetFrameworkRequestMetadata.
Public structureAspNetFrameworkRequestExpressionModel
Exposes a legacy ASP.NET 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.