Пример #1
0
        ///// <summary>
        /////
        ///// </summary>
        ///// <param name="port"></param>
        //protected override void StartInner(int port)
        //{
        //    mHisProcess = new HisDataServerProcess() { Parent = this };
        //    mRealProcess = new RealDataServerProcess() { Parent = this };
        //    mInfoProcess = new TagInfoServerProcess() { Parent = this };
        //    mHisProcess.Start();
        //    mRealProcess.Start();
        //    mInfoProcess.Start();
        //    base.StartInner(port);
        //    mIsRunning = true;
        //}

        /// <summary>
        ///
        /// </summary>
        public override void Stop()
        {
            if (mIsRunning)
            {
                base.Stop();
                if (mHisProcess != null)
                {
                    mHisProcess.Stop();
                    mHisProcess.Dispose();
                    mHisProcess = null;
                }
                if (mRealProcess != null)
                {
                    mRealProcess.Stop();
                    mRealProcess.Dispose();
                    mRealProcess = null;
                }
                if (mInfoProcess != null)
                {
                    mInfoProcess.Stop();
                    mInfoProcess.Dispose();
                    mInfoProcess = null;
                }
            }
        }
Пример #2
0
 public override void Start(int port)
 {
     mHisProcess = new HisDataServerProcess()
     {
         Parent = this
     };
     mRealProcess = new RealDataServerProcess()
     {
         Parent = this
     };
     mInfoProcess = new TagInfoServerProcess()
     {
         Parent = this
     };
     mHisProcess.Start();
     mRealProcess.Start();
     mInfoProcess.Start();
     base.Start(port);
     mIsRunning = true;
 }