コード例 #1
0
        public void EndToEndHappyScenario()
        {
            PowerTradeManager manager = new PowerTradeManager();
            var startTask             = manager.StartReporting();

            System.Threading.Thread.Sleep(TimeSpan.FromSeconds(30));
            manager.StopReporting();
            Assert.IsTrue();
        }
コード例 #2
0
        protected override void OnStop()
        {
            try
            {
                _log.Info("Stopping the PetroineosPositionReporting Windows Service");
                _powerTradeManager.StopReporting();

                _log.Info("PetroineosPositionReporting Windows Service Successfully stopped");
            }
            catch (Exception ex)
            {
                _log.Error(ex.ToString());
            }
        }