Exemplo n.º 1
0
        public ServiceRunner(ISettingsRunnable settings, IRunner runner, string threadName, bool autoStart = false)
        {
            _settings = settings;
            _runnableObject = runner;
            _threadName = threadName;

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

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