public void InitializeCauses() { var config = ServiceProcedureConfig.Load(); CauseMessageRu = UppercaseFirst(config.CauseMessageRu); CauseMessageKz = UppercaseFirst(config.CauseMessageKz); }
protected void Initialize() { var config = ServiceProcedureConfig.Load(); lock (_lock) if (!IsInited) { IsInited = true; InitializeByConfig(config); } }
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; } }