/// <summary> /// Initializes a new instance of the <see cref="Server" /> class. /// </summary> /// <param name="core"> /// 進入點物件 /// </param> /// <param name="port"> /// 監聽的埠 /// </param> public Server(ICore core, int port) { _ThreadCoreHandler = new ThreadCoreHandler(core); _ThreadSocketHandler = new ThreadSocketHandler(port, _ThreadCoreHandler); _WaitSocket = new AutoResetEvent(false); }
public StageRun(Regulus.Game.ICore core,Utility.Command command,int port , Utility.Console.IViewer viewer) { _View = viewer; this._Command = command; _ThreadSocketHandler = new ThreadSocketHandler(port, core); _ThreadSocket = new System.Threading.Thread(_ThreadSocketHandler.DoWork); }