Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: Flow the ClientDisconnectedToken in Web Host [858]

$
0
0
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.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>