Open sandboxFocus

Class AspNetCoreRequestMetadata

The default implementation of LogEventMetadata for incoming ASP.NET Core requests. This implementation exposes an AspNetCoreRequestExpressionModel to the policy configuration file.

Namespace: PostSharp.Patterns.Diagnostics.Adapters.AspNetCore
Assembly: PostSharp.Patterns.Diagnostics.Adapters.AspNetCore.dll
Syntax
public class AspNetCoreRequestMetadata : AspNetCoreRequestMetadata<AspNetCoreRequestExpressionModel>

Constructors

Name Description
AspNetCoreRequestMetadata()

Initializes a new instance of the AspNetCoreRequestMetadata class with the default name. You must not invoke this constructor if you are deriving the class.

AspNetCoreRequestMetadata(string)

Initializes a new instance of the AspNetCoreRequestMetadata class and specifies the name. Invoke this constructor if you are deriving the class.

Methods

Name Description
GetExpressionModel(object)

Gets the object that must be exposed to the expressions in transaction policies.