You are creating a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application uses a state machineCbased workflow that takes 10 to 15 days to complete. The workflow will be persisted when idle. The workflow communicates with a custom class that implements the IWorkflowAction interface. The interface contains events that the workflow will handle. The events require a custom EventArgs class. You need to implement the WorkflowActionEventArgs class. Which code segment should you use?
A.
public class WorkflowActionEventArgs : EventArgs { public Guid InstanceId; public string Action; public WorkflowActionEventArgs(Guid instanceId, string action) { InstanceId = instanceId; Action = action; }}
B.
[Serializable]public class WorkflowActionEventArgs : EventArgs { public Guid InstanceId; public string Action; public WorkflowActionEventArgs(Guid instanceId, string action) { InstanceId = instanceId; Action = action; }}
C.
public class WorkflowActionEventArgs : ExternalDataEventArgs { public string Action; public WorkflowActionEventArgs(Guid instanceId, string action) : base(instanceId) { Action = action; }}
D.
[Serializable]public class WorkflowActionEventArgs : ExternalDataEventArgs { public string Action; public WorkflowActionEventArgs(Guid instanceId, string action) : base(instanceId) { Action = action; }}