HttpActionBinding.ExecuteBindingAsync Method
Executes asynchronously the binding for the given request context.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Function ExecuteBindingAsync ( _
actionContext As HttpActionContext, _
cancellationToken As CancellationToken _
) As Task
'Usage
Dim instance As HttpActionBinding
Dim actionContext As HttpActionContext
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = instance.ExecuteBindingAsync(actionContext, _
cancellationToken)
public virtual Task ExecuteBindingAsync(
HttpActionContext actionContext,
CancellationToken cancellationToken
)
public:
virtual Task^ ExecuteBindingAsync(
HttpActionContext^ actionContext,
CancellationToken cancellationToken
)
abstract ExecuteBindingAsync :
actionContext:HttpActionContext *
cancellationToken:CancellationToken -> Task
override ExecuteBindingAsync :
actionContext:HttpActionContext *
cancellationToken:CancellationToken -> Task
public function ExecuteBindingAsync(
actionContext : HttpActionContext,
cancellationToken : CancellationToken
) : Task
Parameters
actionContext
Type: System.Web.Http.Controllers.HttpActionContextThe action context for the binding. This contains the parameter dictionary that will get populated.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token for cancelling the binding operation. Or a binder can also bind a parameter to this.
Return Value
Type: System.Threading.Tasks.Task
Task that is signaled when the binding is complete.
Remarks
For simple bindings from a URI, this should be signalled immediately. For bindings that read the content body, this may do network IO.