Class CancellationTokenModelBinder
Provides a mechanism to propagates notification that model binder operations should be canceled.
public class CancellationTokenModelBinder : IModelBinder
- Inheritance
-
CancellationTokenModelBinder
- Implements
- Inherited Members
Constructors
CancellationTokenModelBinder()
Initializes a new instance of the CancellationTokenModelBinder class.
public CancellationTokenModelBinder()
Methods
BindModel(ControllerContext, ModelBindingContext)
Returns the default cancellation token.
public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
Parameters
controllerContext
ControllerContextThe controller context.
bindingContext
ModelBindingContextThe binding context.
Returns
- object
The default cancellation token.ImplementsBindModel(ControllerContext, ModelBindingContext)