public override void Start(int port) { mWorkStateProcess = new WorStateServerProcess() { Parent = this }; mRealDataSyncProcess = new RealDataSyncServerProcess() { Parent = this }; mWorkStateProcess.Start(); mRealDataSyncProcess.Start(); base.Start(port); }
///// <summary> ///// ///// </summary> ///// <param name="port"></param> //protected override void StartInner(int port) //{ // mWorkStateProcess = new WorStateServerProcess() { Parent = this }; // mRealDataSyncProcess = new RealDataSyncServerProcess() { Parent = this }; // mWorkStateProcess.Start(); // mRealDataSyncProcess.Start(); // base.StartInner(port); //} /// <summary> /// /// </summary> public override void Stop() { base.Stop(); if (mWorkStateProcess != null) { mWorkStateProcess.Stop(); mWorkStateProcess.Dispose(); mWorkStateProcess = null; } if (mRealDataSyncProcess != null) { mRealDataSyncProcess.Stop(); mRealDataSyncProcess.Dispose(); mRealDataSyncProcess = null; } }