Exemple #1
0
        public void InitializeCauses()
        {
            var config = ServiceProcedureConfig.Load();

            CauseMessageRu = UppercaseFirst(config.CauseMessageRu);
            CauseMessageKz = UppercaseFirst(config.CauseMessageKz);
        }
Exemple #2
0
        protected void Initialize()
        {
            var config = ServiceProcedureConfig.Load();

            lock (_lock)
                if (!IsInited)
                {
                    IsInited = true;
                    InitializeByConfig(config);
                }
        }
Exemple #3
0
 protected void InitializeByConfig(ServiceProcedureConfig config)
 {
     if (config != null && config.InitializeEnabled)
     {
         Enabled            = config.Enabled;
         ServicePage        = config.ServicePage;
         TimeBetweenRequest = config.TimeBetweenRequest;
         TimeToShutDown     = config.TimeToShutDown;
         TimeToEnable       = config.TimeToEnable;
         TimeOfEndService   = config.TimeOfEndService;
         UsersMayWork       = LoadUsersMayWork();
         CauseMessageRu     = config.CauseMessageRu;
         CauseMessageKz     = config.CauseMessageKz;
     }
 }