-
-
Notifications
You must be signed in to change notification settings - Fork 630
Expand file tree
/
Copy pathIRuleFlow.cs
More file actions
26 lines (22 loc) · 707 Bytes
/
IRuleFlow.cs
File metadata and controls
26 lines (22 loc) · 707 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
25
26
using BotSharp.Abstraction.Rules.Models;
namespace BotSharp.Abstraction.Rules;
public interface IRuleFlow<T> where T : class
{
/// <summary>
/// Rule flow topology name
/// </summary>
string Name { get; }
/// <summary>
/// Get rule flow topology config
/// </summary>
/// <param name="options"></param>
/// <returns></returns>
Task<RuleConfigModel> GetTopologyConfigAsync(RuleFlowConfigOptions? options = null);
/// <summary>
/// Get rule flow topology
/// </summary>
/// <param name="id"></param>
/// <param name="options"></param>
/// <returns></returns>
Task<T?> GetTopologyAsync(string id, RuleFlowLoadOptions? options = null);
}