Skip to content

Commit 1ce4ddf

Browse files
💾 Feat(Workflow): 扩展 WorkflowSavedEventArgs 支持 Description 与 Author 字段同步
1 parent 4c0b204 commit 1ce4ddf

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

KitX Core Contracts/KitX.Core.Contract/Event/WorkflowEventArgs.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,22 @@ public class WorkflowSavedEventArgs : EventArgs
3939
/// </summary>
4040
public string WorkflowName { get; }
4141

42-
public WorkflowSavedEventArgs(string workflowId, string workflowName)
42+
/// <summary>
43+
/// The workflow description at time of save
44+
/// </summary>
45+
public string Description { get; }
46+
47+
/// <summary>
48+
/// The workflow author at time of save
49+
/// </summary>
50+
public string Author { get; }
51+
52+
public WorkflowSavedEventArgs(string workflowId, string workflowName,
53+
string description = "", string author = "")
4354
{
4455
WorkflowId = workflowId;
4556
WorkflowName = workflowName;
57+
Description = description;
58+
Author = author;
4659
}
4760
}

0 commit comments

Comments
 (0)