/// <summary> /// Start the broker. Do not call this unless TryStop() returns true. /// </summary> public virtual void Start() { Debug.Assert(m_thread == null); if (this is EAnpClientBroker) m_thread = new EAnpClientThread(this as EAnpClientBroker); else m_thread = new EAnpServerThread(this as EAnpServerBroker); m_thread.Start(); }
public EAnpThreadChannel(EAnpBaseThread thread) { Worker = thread; ChannelID = Worker.Broker.InternalNextChannelID++; }
/// <summary> /// Called by the worker thread when it has completed. /// </summary> public void InternalThreadCompletion() { m_thread = null; if (OnClose != null) OnClose(this, null); }