Пример #1
0
 /// <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();
 }
Пример #2
0
 public EAnpThreadChannel(EAnpBaseThread thread)
 {
     Worker = thread;
     ChannelID = Worker.Broker.InternalNextChannelID++;
 }
Пример #3
0
 /// <summary>
 /// Called by the worker thread when it has completed.
 /// </summary>
 public void InternalThreadCompletion()
 {
     m_thread = null;
     if (OnClose != null) OnClose(this, null);
 }