Exemple #1
0
        public ServiceRunner(ISettingsRunnable settings, IRunner runner, string threadName, bool autoStart = false)
        {
            _settings = settings;
            _runnableObject = runner;
            _threadName = threadName;

            if (autoStart)
                Start();
        }
Exemple #2
0
        public ServiceRunner(ISettingsRunnable settings, IRunner runner, string threadName, bool autoStart = false)
        {
            _settings       = settings;
            _runnableObject = runner;
            _threadName     = threadName;

            if (autoStart)
            {
                Start();
            }
        }
Exemple #3
0
 public ServiceRunner(ISettingsRunnable settings, IImportavel importador, string threadName, bool autoStart = false)
     : this(settings, new ImportadorService(importador), threadName, autoStart)
 {
 }
 public ServiceRunnerConsumer(ISettingsRunnable settings, IConsumerRunner <T> consumer, string threadName, bool autoStart = false)
     : base(settings, new ConsumerRunner <T>(consumer), threadName, autoStart)
 {
     _consumer = consumer;
 }
Exemple #5
0
 public ServiceRunner(ISettingsRunnable settings, IImportavel importador, string threadName, bool autoStart = false)
     : this(settings, new ImportadorService(importador), threadName, autoStart)
 {
 }
 public ServiceRunnerProducer(ISettingsRunnable settings, IProducerRunner <T> runner, string threadName, bool autoStart = false)
     : base(settings, new ProducerRunner(runner), threadName, autoStart)
 {
     Producer = runner;
 }