Table of Contents

Class CancellationTokenParameterBinding

Namespace
System.Web.Http.ModelBinding
Assembly
System.Web.Http.dll

Represents the binding directly to the cancellation token.

public class CancellationTokenParameterBinding : HttpParameterBinding
Inheritance
CancellationTokenParameterBinding
Inherited Members

Constructors

CancellationTokenParameterBinding(HttpParameterDescriptor)

Initializes a new instance of the CancellationTokenParameterBinding class.

public CancellationTokenParameterBinding(HttpParameterDescriptor descriptor)

Parameters

descriptor HttpParameterDescriptor

The binding descriptor.

Methods

ExecuteBindingAsync(ModelMetadataProvider, HttpActionContext, CancellationToken)

Executes the binding during synchronization.

public override Task ExecuteBindingAsync(ModelMetadataProvider metadataProvider, HttpActionContext actionContext, CancellationToken cancellationToken)

Parameters

metadataProvider ModelMetadataProvider

The metadata provider.

actionContext HttpActionContext

The action context.

cancellationToken CancellationToken

The notification after the cancellation of the operations.

Returns

Task

The binding during synchronization.