Class ControllerActionContext

Assembly: redb.Route.Controllers.dll

Per-action invocation context passed to s.
All mutable fields are populated by
before filters are invoked.

public sealed class ControllerActionContext

Inheritance

Object→ControllerActionContext

Properties

Action

Resolved controller action descriptor.

public ControllerAction Action { get; }

Arguments

Resolved positional argument values for the action method.

public object?[] Arguments { get; }

Elapsed

Wall-clock duration of the action invocation (excluding filter Before phase).

public TimeSpan Elapsed { get; }

Exception

Exception thrown by the action (if any).

public Exception? Exception { get; }

Exchange

The current message exchange.

public IExchange Exchange { get; }

Items

Free-form items bag for filter-to-filter communication within a single invocation.

public IDictionary<string, object?> Items { get; }

Result

Action result (set after invocation, before ).

public object? Result { get; }

RouteParams

Route parameters extracted from the path.

public IReadOnlyDictionary<string, string> RouteParams { get; }

StatusCode

HTTP-style status code written to the response.

public int StatusCode { get; }

Constructors