-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIActionExecuteMessage.cs
More file actions
42 lines (36 loc) · 986 Bytes
/
IActionExecuteMessage.cs
File metadata and controls
42 lines (36 loc) · 986 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Text;
namespace D.FreeExchange
{
/// <summary>
/// 思考了很久,觉得还是这样比较好
/// </summary>
public interface IActionExecuteMessage
{
/// <summary>
/// 请求的路由
/// </summary>
string Url { get; }
/// <summary>
/// 超时时间
/// </summary>
TimeSpan? Timeout { get; }
/// <summary>
/// 发起请求的 proxy
/// </summary>
IExchangeProxy Proxy { get; }
/// <summary>
/// 请求参数的 json 字符串
/// </summary>
string Request { get; set; }
/// <summary>
/// response 中的 json 字符串
/// </summary>
string Response { get; set; }
/// <summary>
/// 请求和回复模型中的 byte 数组
/// </summary>
IEnumerable<IByteDescription> ByteDescriptions { get; }
}
}