示例#1
0
        public override void Start()
        {
            Platform.Log(LogLevel.Debug, "{0}[{1}]: Start invoked", _className, AppDomain.CurrentDomain.FriendlyName);

            try
            {
                _service = new UsageTrackingService();
                _service.Start();
            }
            catch (Exception e)
            {
                Platform.Log(LogLevel.Fatal, e, "Unexpected exception starting {0}", GetDisplayName());
            }
        }
        public override void Start()
        {
            Platform.Log(LogLevel.Debug, "{0}[{1}]: Start invoked", _className, AppDomain.CurrentDomain.FriendlyName);

			_shredStartupHelper = new ShredStartupHelper(GetDisplayName());
			_shredStartupHelper.Initialize();
			if (_shredStartupHelper.StopFlag)
				return;
			_shredStartupHelper = null;

            try
            {
                _service = new UsageTrackingService();
                _service.Start();
            }
            catch (Exception e)
            {
                Platform.Log(LogLevel.Fatal, e, "Unexpected exception starting {0}", GetDisplayName());
            }
        }