-
Notifications
You must be signed in to change notification settings - Fork 664
Closed
Description
Discussed here #1001 (comment)
It's not clear how to use SubscribeToResourceAsync from the signature / docs. You can subscribe, but what gets notified? To remove the subscription you need to Unsubscribe, which is different than RegisterNotificationHandler which provides an IAsyncDisposable for removal.
We discussed adding an overload for SubscribeToResourceAsync that would accept the handler and return an IAsyncDisposable. This would allow for a single call to subscribe without needing to handle unsubscribe separately.
We should also improve the documents for Subscribe/Unsubscribe/Register so it's clear how they work together.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels