PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­FrameworkAsp­Net­Framework­Request­Expression­Model
Open sandboxFocus

AspNetFrameworkRequestExpressionModel Struct

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.

Implements
IFormattable
Namespace: PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework
Assembly: PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework.dll
Syntax
public readonly struct AspNetFrameworkRequestExpressionModel : IFormattable

Properties

Name Description
Context

Gets the full System.Web.HttpContext object.

Method

Gets the HTTP method (such as GET).

Path

Gets the path of the URL, starting with a /.

Protocol

Gets the request protocol (such HTTP/1.1).

QueryString

Gets the query string starting with a ?, or null.

RemoteIpAddress

Gets the IP address of the remote client.

Scheme

Gets the request scheme, for instance http or https.

User

Gets the name of the current authenticated user, or null.

Methods

Name Description
GetHeader(String)

Gets a specified header, or null.

Explicit Interface Implementations

Name Description
IFormattable.Format(UnsafeStringBuilder, FormattingRole)