示例#1
0
 public override void Start(int port)
 {
     mWorkStateProcess = new WorStateServerProcess()
     {
         Parent = this
     };
     mRealDataSyncProcess = new RealDataSyncServerProcess()
     {
         Parent = this
     };
     mWorkStateProcess.Start();
     mRealDataSyncProcess.Start();
     base.Start(port);
 }
示例#2
0
        ///// <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;
            }
        }