Beispiel #1
0
 private BatchProcessingTaskMetadata(Type batchProcessingTaskType, MethodInfo methodInfo, BatchProcessingTaskAttribute taskAttribute)
 {
     this.Type          = batchProcessingTaskType;
     this.MethodInfo    = methodInfo;
     this.taskAttribute = taskAttribute;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new batch processing task metadata.
 /// </summary>
 /// <param name="batchProcessingTaskType">The type of the task.</param>
 /// <param name="methodInfo">The method information.</param>
 /// <param name="taskAttribute">The task attribute.</param>
 /// <returns>A task metadata.</returns>
 public static BatchProcessingTaskMetadata Create(Type batchProcessingTaskType, MethodInfo methodInfo, BatchProcessingTaskAttribute taskAttribute)
 {
     // Create the task metadata
     return(new BatchProcessingTaskMetadata(batchProcessingTaskType, methodInfo, taskAttribute));
 }
 /// <summary>
 /// Creates a new batch processing task metadata.
 /// </summary>
 /// <param name="batchProcessingTaskType">The type of the task.</param>
 /// <param name="methodInfo">The method information.</param>
 /// <param name="taskAttribute">The task attribute.</param>
 /// <param name="logWriter">The log writer.</param>
 /// <returns>A task metadata.</returns>
 public static BatchProcessingTaskMetadata Create(Type batchProcessingTaskType, MethodInfo methodInfo, BatchProcessingTaskAttribute taskAttribute, VisualizationLogWriter logWriter)
 {
     // Create the task metadata
     return(new BatchProcessingTaskMetadata(batchProcessingTaskType, methodInfo, taskAttribute.Name, taskAttribute.Description, taskAttribute.IconSourcePath));
 }