示例#1
0
文件: Channel.cs 项目: ewin66/Forge
 /// <summary>
 /// Initializes a new instance of the <see cref="EventContainer"/> class.
 /// </summary>
 /// <param name="container">The container.</param>
 /// <param name="sessionId">The session id.</param>
 internal EventContainer(SerializedEventForSession container, String sessionId)
 {
     this.mContainer           = container;
     this.mSessionId           = sessionId;
     this.mThread              = new Thread(new ThreadStart(ThreadMain));
     this.mThread.IsBackground = true;
     this.mThread.Name         = String.Format("ChannelEvent_{0}", sessionId);
     this.mThread.Start();
 }
示例#2
0
文件: Channel.cs 项目: ewin66/Forge
 /// <summary>
 /// Initializes a new instance of the <see cref="Channel"/> class.
 /// </summary>
 protected Channel()
 {
     mSerializedEvents = new SerializedEventForSession(this);
 }