/// <summary> /// 受信スレーブシステムを停止します。 /// </summary> /// <returns>ストリーミング終了のコールバックが行われないときはfalseを返します。</returns> internal bool End() { IsExpectedEnd = true; if (stream != null) { var cs = stream; stream = null; if (cs != null) cs.EndStreaming(); return true; } else { return false; } }
internal ReceiveSlave(ITwitterStreaming strm, AccountElement elem) { stream = strm; strm.OnDisconnected += new Action<bool>(strm_OnDisconnected); acElem = elem; }