Esempio n. 1
0
        protected override void OnStart(string[] args)
        {
            Log.LogInfoMessage("[Enter] Starting Service");

            try
            {
                ContainerManager.Initialise();
                SetupRequestService();
                ContainerManager.Container.Resolve <ScheduleManager>().RegisterJobs();
            }
            catch (Exception ex)
            {
                Log.LogException(ex);
                Log.LogTrace(ex.Message + ". Check error log for more details.");

                throw;
            }

            Log.LogInfoMessage("[Exit] Starting Service");
        }