예제 #1
0
파일: DataService.cs 프로젝트: cdy816/mars
        ///// <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);
        }
예제 #2
0
파일: DataService.cs 프로젝트: cdy816/mars
        /// <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);
        }