public static void AddLabel(this ITaggedProcess taggedProcess, string label, int verbosity = 0, ITaggedProcess start = null) { taggedProcess.AddTag(new ProcessTag(label, String.IsNullOrEmpty(label) ? 1000 : verbosity, start != null ? start.ProcessData : null, taggedProcess.ProcessData)); }
public static TtaggedProcess Labeled <TtaggedProcess>(this TtaggedProcess taggedProcess, string label, int verbosity = 0, ITaggedProcess start = null) where TtaggedProcess : ITaggedProcess { taggedProcess.AddLabel(label, verbosity, start); return(taggedProcess); }
public static void AddTag(this ITaggedProcess taggedProcess, ProcessTag tag) { taggedProcess.ProcessData.AddTag(tag); }