Exemplo n.º 1
0
        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
            {
                _timer = new Timer(OnTimer, null, _oneMinute, _repeatEvery24Hours);
            }
            catch (Exception e)
            {
                Platform.Log(LogLevel.Fatal, e, "Unexpected exception starting {0}", GetDisplayName());
            }
        }
Exemplo n.º 2
0
        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
            {
                MountWebServices();
            }
            catch (Exception e)
            {
                Platform.Log(LogLevel.Fatal, e, "Unexpected exception starting Web Services Server Shred");
            }
        }
Exemplo n.º 3
0
        public override void Start()
        {
            _shredStartupHelper = new ShredStartupHelper(GetDisplayName());
            _shredStartupHelper.Initialize();
            if (_shredStartupHelper.StopFlag)
            {
                return;
            }
            _shredStartupHelper = null;

            try
            {
                ServerPlatform.Alert(AlertCategory.System, AlertLevel.Informational,
                                     SR.AlertComponentName, AlertTypeCodes.Starting,
                                     null, TimeSpan.Zero,
                                     SR.AlertShredHostServiceStarting);
            }
            catch (Exception e)
            {
                Platform.Log(LogLevel.Error, "Unexpected exception generating an alert for ShredHost startup: {0}", e.Message);
            }
        }