-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathIActivityController.cs
More file actions
24 lines (20 loc) · 812 Bytes
/
Copy pathIActivityController.cs
File metadata and controls
24 lines (20 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Threading.Tasks;
namespace WorkflowCore.Interface
{
public class PendingActivity
{
public string Token { get; set; }
public string ActivityName { get; set; }
public object Parameters { get; set; }
public DateTime TokenExpiry { get; set; }
}
public interface IActivityController
{
Task<PendingActivity> GetPendingActivity(string activityName, string workerId, TimeSpan? timeout = null);
Task<PendingActivity> GetPendingActivity(string activityName, string workflowId, string workerId, TimeSpan? timeout = null);
Task ReleaseActivityToken(string token);
Task SubmitActivitySuccess(string token, object result);
Task SubmitActivityFailure(string token, object result);
}
}