public ExecutionStartLogEntryDetails(
     DataProcessingServiceExecutorType executorType,
     string processorName,
     string inputTypeName  = null,
     string outputTypeName = null)
 {
     ExecutorType  = executorType;
     ProcessorName = processorName;
     if (executorType == DataProcessingServiceExecutorType.Processor)
     {
         InputTypeName  = inputTypeName;
         OutputTypeName = outputTypeName;
     }
 }
Esempio n. 2
0
 public ExecutionSummaryLogEntryDetails(
     DataProcessingServiceExecutorType executorType,
     string processorName,
     UnitValue executionTime,
     bool isError,
     bool isWorkDone,
     string inputDataObjectId = null,
     string inputTypeName     = null,
     string outputTypeName    = null)
 {
     ExecutorType  = executorType;
     ProcessorName = processorName ?? throw new ArgumentNullException(nameof(processorName));
     ExecutionTime = executionTime ?? throw new ArgumentNullException(nameof(executionTime));
     IsError       = isError;
     IsWorkDone    = isWorkDone;
     if (ExecutorType == DataProcessingServiceExecutorType.Processor)
     {
         InputDataObjectId = inputDataObjectId ?? throw new ArgumentNullException(nameof(inputDataObjectId));
         InputTypeName     = inputTypeName ?? throw new ArgumentNullException(nameof(inputTypeName));
         OutputTypeName    = outputTypeName; // Can be null for IOneToNoneProcessor
     }
 }