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
HttpParameterDescriptorThe binding descriptor.
Methods
ExecuteBindingAsync(ModelMetadataProvider, HttpActionContext, CancellationToken)
Executes the binding during synchronization.
public override Task ExecuteBindingAsync(ModelMetadataProvider metadataProvider, HttpActionContext actionContext, CancellationToken cancellationToken)
Parameters
metadataProvider
ModelMetadataProviderThe metadata provider.
actionContext
HttpActionContextThe action context.
cancellationToken
CancellationTokenThe notification after the cancellation of the operations.
Returns
- Task
The binding during synchronization.