Esempio n. 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();
 }
Esempio n. 2
0
 public EAnpThreadChannel(EAnpBaseThread thread)
 {
     Worker = thread;
     ChannelID = Worker.Broker.InternalNextChannelID++;
 }
Esempio n. 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);
 }