This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 446
Cancellation in Streamed results #481
Comments
@anurse +1 for passing a CancellationToken into a hub method. question would this be a token from a client or a server side token? could this be used by an administrator to terminate badly behaved SignalR hub streaming methods? or place a upper limit on time of execution etc. |
Need to expose a CancellationToken to the hub in some way. Needs some design/discussion. |
I think we should just expose it as a property on the Context instead of being a parameter. |
Agreed. If we put it as an argument it would be confused with something the client could control. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We need to review how cancellation works in Streamed results. If the connection terminates, we need to be able to stop enumerating the sequence the user gave us, and ideally signal cancellation back to it in order to cancel any other async operations.
On a similar note, we may want to add support for passing a
CancellationToken
in to a Hub method.The text was updated successfully, but these errors were encountered: