コード例 #1
0
        public void Start(Router router)
        {
            if (lifeCycleToken.Start())
            {
                timer.Start();

                this.router = router;
                this.router.Start();

                var connectionLoopThread = new Thread(ConnectionLoop)
                {
                    Priority     = ThreadPriority.AboveNormal,
                    IsBackground = false,
                    Name         = name
                };

                connectionLoopThread.Start();
            }
        }
 protected override void OnStart()
 {
     timer.Start();
 }