コード例 #1
0
ファイル: ServiceRunner.cs プロジェクト: rubenlr/Utilities
        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)
 {
 }
コード例 #4
0
 public ServiceRunnerConsumer(ISettingsRunnable settings, IConsumerRunner <T> consumer, string threadName, bool autoStart = false)
     : base(settings, new ConsumerRunner <T>(consumer), threadName, autoStart)
 {
     _consumer = consumer;
 }
コード例 #5
0
ファイル: ServiceRunner.cs プロジェクト: rubenlr/Utilities
 public ServiceRunner(ISettingsRunnable settings, IImportavel importador, string threadName, bool autoStart = false)
     : this(settings, new ImportadorService(importador), threadName, autoStart)
 {
 }
コード例 #6
0
 public ServiceRunnerProducer(ISettingsRunnable settings, IProducerRunner <T> runner, string threadName, bool autoStart = false)
     : base(settings, new ProducerRunner(runner), threadName, autoStart)
 {
     Producer = runner;
 }