示例#1
0
        public TplNetEngine(M model, int batchSize, IJournalWriter journalWriter)
        {
            var kernel = new Kernel(model);

            _executor  = new TplNetExecutor(kernel);
            _journaler = new TplNetJournaler(batchSize, journalWriter, _executor);

            _journaler.Start();
            _executor.Start();
        }
 public TplNetJournaler(int batchSize, IJournalWriter journalWriter, TplNetExecutor executor)
 {
     _batchSize = batchSize;
     _journalWriter = journalWriter;
     _executor = executor;
 }
示例#3
0
 public TplNetJournaler(int batchSize, IJournalWriter journalWriter, TplNetExecutor executor)
 {
     _batchSize     = batchSize;
     _journalWriter = journalWriter;
     _executor      = executor;
 }