Exemple #1
0
        internal IDisposable Subscribe <T>(MessageHandler <T> messageHandler)
        {
            var disposable = PublisherInternal <T> .Subscribe(_worldId, messageHandler);

            _subscriptions.Add(disposable);
            return(disposable);
        }
Exemple #2
0
 public void Dispose()
 {
     PublisherInternal <T> .Unsubscribe(_worldId, _messageHandler);
 }