Skip to content

Commit

Permalink
Write some doc about subscription lifecycle management
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Jun 7, 2016
1 parent 9b36008 commit 173bf60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/usage/notifications/Subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ subscription.EventFilters = listOfEvents;
```
Where listOfEvents is a `List<string>` containing each event to subscribe to.


### Lifecyle management

Users of this SDK is responsible for managing the lifecyle of `subscription`. In order to keep it alive, you need to make sure that it will not be garbage collected. So most likely you want to make `subscription` a class variable instead of a local variable.


### Casting SubscriptionEventArgs

#### Casting on Notification
Expand Down

0 comments on commit 173bf60

Please sign in to comment.