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

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

            if (autoStart)
            {
                Start();
            }
        }
示例#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;
 }
示例#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;
 }