Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 public override void Stop()
 {
     base.Stop();
     if (mHisProcess != null)
     {
         mHisProcess.Stop();
         mHisProcess.Dispose();
         mHisProcess = null;
     }
 }
Beispiel #2
0
        ///// <summary>
        /////
        ///// </summary>
        ///// <param name="port"></param>
        //protected override void StartInner(int port)
        //{
        //    mHisProcess = new HisDataServerProcess() { Parent = this };
        //    mInfoProcess = new TagInfoServerProcess() { Parent = this };
        //    mHisProcess.Start();
        //    mInfoProcess.Start();
        //    base.StartInner(port);

        //}

        public override void Start(int port)
        {
            mHisProcess = new HisDataServerProcess()
            {
                Parent = this
            };
            mInfoProcess = new TagInfoServerProcess()
            {
                Parent = this
            };
            mHisProcess.Start();
            mInfoProcess.Start();
            base.Start(port);
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="port"></param>
        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();

            ServiceLocator.Locator.Registor <IAPINotify>(mInfoProcess);

            base.Start(port);
        }