Table of Contents

Class HttpActionBinding

Namespace
System.Web.Http.Controllers
Assembly
System.Web.Http.dll

Describes how the binding will happen and does not actually bind.

public class HttpActionBinding
Inheritance
HttpActionBinding
Inherited Members

Constructors

HttpActionBinding()

Initializes a new instance of the HttpActionBinding class.

public HttpActionBinding()

HttpActionBinding(HttpActionDescriptor, HttpParameterBinding[])

Initializes a new instance of the HttpActionBinding class.

public HttpActionBinding(HttpActionDescriptor actionDescriptor, HttpParameterBinding[] bindings)

Parameters

actionDescriptor HttpActionDescriptor

The back pointer to the action this binding is for.

bindings HttpParameterBinding[]

The synchronous bindings for each parameter.

Properties

ActionDescriptor

Gets or sets the back pointer to the action this binding is for.

public HttpActionDescriptor ActionDescriptor { get; set; }

Property Value

HttpActionDescriptor

The back pointer to the action this binding is for.

ParameterBindings

Gets or sets the synchronous bindings for each parameter.

public HttpParameterBinding[] ParameterBindings { get; set; }

Property Value

HttpParameterBinding[]

The synchronous bindings for each parameter.

Methods

ExecuteBindingAsync(HttpActionContext, CancellationToken)

Executes asynchronously the binding for the given request context.

public virtual Task ExecuteBindingAsync(HttpActionContext actionContext, CancellationToken cancellationToken)

Parameters

actionContext HttpActionContext

The action context for the binding. This contains the parameter dictionary that will get populated.

cancellationToken CancellationToken

The cancellation token for cancelling the binding operation. Or a binder can also bind a parameter to this.

Returns

Task

Task that is signaled when the binding is complete.