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