예제 #1
0
 protected override void ConsumeData(IDataProducer sender, object data)
 {
     // process data
     data = ProcessData(sender, data);
     // dispatch data
     WorkflowUtils.DispatchData(this, data, mCloneDataOnFork, mDispatchPolicy, mDataConsumers, mLogger);
 }
예제 #2
0
 public StreamDataConsumer(string loggerBaseName)
 {
     mThread = new Thread(new ThreadStart(ProcessQueue));
     mLogger = WorkflowUtils.CreateLogger(mLoggerBaseName = loggerBaseName, mName);
 }
예제 #3
0
 public StreamDataProducer(string loggerBaseName)
 {
     mLoggerBaseName = loggerBaseName;
     mLogger         = WorkflowUtils.CreateLogger(mLoggerBaseName, mName);
 }
예제 #4
0
 protected void DispatchData(object data)
 {
     WorkflowUtils.DispatchData(this, data, mCloneDataOnFork, mDispatchPolicy, mDataConsumers, mLogger);
 }
예제 #5
0
 public StreamDataProducer(Type loggerType)
 {
     mLoggerBaseName = loggerType.ToString();
     mLogger         = WorkflowUtils.CreateLogger(mLoggerBaseName, mName);
 }