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