Пример #1
0
 /// <summary>
 /// Reports that the channel state has changed (in another thread).
 /// </summary>
 protected void ChannelStateChanged(TcpChannelState state, ServiceResult reason)
 {
     Task.Run(() =>
     {
         if (m_StateChanged != null)
         {
             m_StateChanged(this, state, reason);
         }
     });
 }
Пример #2
0
 /// <summary>
 /// Reports that the channel state has changed (in another thread).
 /// </summary>
 protected void ChannelStateChanged(TcpChannelState state, ServiceResult reason)
 {
     ThreadPool.QueueUserWorkItem(m_ChannelStateChanged, new object[] { state, reason });
 }
 /// <summary>
 /// Reports that the channel state has changed (in another thread).
 /// </summary>
 protected void ChannelStateChanged(TcpChannelState state, ServiceResult reason)
 {
     Task.Run(() => {
         m_StateChanged?.Invoke(this, state, reason);
     });
 }