With [this commit](http://aspnetwebstack.codeplex.com/SourceControl/changeset/c18dbd8306a2), it's now possible to flow the following two CancellationToken objects through the ASP.NET Web API pipeline under ASP.NET host:
```
public override Task ProcessRequestAsync(HttpContext context) {
CancellationTokenSource cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(
context.Request.TimedOutToken,
context.Response.ClientDisconnectedToken);
//...
}
```
Edit: We'd like to flow ClientDisconnectedToken, but we're waiting on a reliability fix for it to be published first. For TimedOutToken, that's something that could be pretty easily added in code via Web API, which is probably better than tying to a web.config setting.
```
public override Task ProcessRequestAsync(HttpContext context) {
CancellationTokenSource cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(
context.Request.TimedOutToken,
context.Response.ClientDisconnectedToken);
//...
}
```
Edit: We'd like to flow ClientDisconnectedToken, but we're waiting on a reliability fix for it to be published first. For TimedOutToken, that's something that could be pretty easily added in code via Web API, which is probably better than tying to a web.config setting.