예제 #1
0
        private void GetSettings()
        {
            AutoDialerConfig = new AutoDialerConfig();

            var config = settingsRepository.GetSettings();
            if (config != null)
                AutoDialerConfig = config.Clone() as AutoDialerConfig;
        }
예제 #2
0
        public DialerWorker(DialerEntry entry, IAPIExtension extension)
        {
            this.entry = entry;
            this.extension = extension;

            config = SimpleIoc.Default.GetInstance<IGenericSettingsRepository<AutoDialerConfig>>().GetSettings() ?? new AutoDialerConfig();

            ringingTimer = new Timer(config.RingingTime*1000);
            ringingTimer.Elapsed += ringingTimer_Elapsed;

            progressTimer = new Timer(1000);
            progressTimer.AutoReset = true;
            progressTimer.Elapsed += progressTimer_Elapsed;
        }