/// <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); } }); }
/// <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); }); }