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
controllerContextControllerContextThe controller context.
bindingContextModelBindingContextThe binding context.
Returns
- object
The default cancellation token.ImplementsBindModel(ControllerContext, ModelBindingContext)