Created
January 10, 2021 14:48
-
-
Save zleao/2aa83875f93c1ebbf866024b16ccd4ef to your computer and use it in GitHub Desktop.
Examples of unsubscriptions using zoft.NotificationService
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Unsubscribe message with specified token | |
NotificationService.Unsubscribe(token); | |
// Unsubscribe all messages from a particular message type | |
NotificationService.Unsubscribe<MyMessage>(); | |
NotificationService.Unsubscribe(typeof(MyMessage)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment