Пример #1
0
 /// <summary>
 /// Creates a new instance of the single-thread token processor with
 /// given shared collection of tokens.
 /// </summary>
 /// <param name="tokensToProcess">shared collection of tokens to be
 /// processed</param>
 /// <param name="processor">reference to a processor component
 /// </param>
 public SingleThreadProcessor(
     BlockingCollection<Token> tokensToProcess,
     ProcessorService processor,
     MessageFlow messageFlow)
 {
     this.tokensToProcess = tokensToProcess;
     this.Processor = processor;
     this.messageFlow = messageFlow;
 }
Пример #2
0
 public ProcessorServiceForNode(ProcessorService processor, Node node)
 {
     Processor = processor;
     Node = node;
 }