public void Dispose() { if (_userStream != null) { _userStream.StreamIsReady -= OnStreamIsReady; _userStream.MessageSent -= OnMessageSent; _userStream.MessageReceived -= OnMessageReceived; _userStream.TweetFavouritedByMe -= OnTweetFavouritedByMe; _userStream.StopStream(); _userStream = null; } }
public void Stop() { log.LogInformation("Stop"); stream?.StopStream(); }