Exemplo n.º 1
0
 /// <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;
     }
 }
Exemplo n.º 2
0
 internal ReceiveSlave(ITwitterStreaming strm, AccountElement elem)
 {
     stream = strm;
     strm.OnDisconnected += new Action<bool>(strm_OnDisconnected);
     acElem = elem;
 }