CancellationTokenModelBinder Class

Summary

Represents a model binder which can bind models of type [System.Threading.CancellationToken]().

Syntax

public class CancellationTokenModelBinder : IModelBinder

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.CancellationTokenModelBinder

Methods

BindModelAsync(Microsoft.AspNet.Mvc.ModelBinding.ModelBindingContext)
Arguments:
Return type:

System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.ModelBinding.ModelBindingResult}

public Task<ModelBindingResult> BindModelAsync(ModelBindingContext bindingContext)