private void Dispose(bool disposing) { if (_userStreams != null) { UserStreamsConnection disposal = _userStreams; _userStreams = null; disposal.Dispose(); } _userTimelineReceiver.Dispose(); }
public void UserStreamsStartsWith(IEnumerable<string> trackKeywords) { CheckDispose(); if (IsUserStreamsEnabled) // already connected return; _userStreams = new UserStreamsConnection(AuthInfo); _userStreams.IsConnectionAliveEvent += UserStreamsStateChanged; _userStreams.TrackKeywords = trackKeywords; _userStreams.Connect(); }