forked from NetCoreStack/Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequestDescriptor.cs
More file actions
30 lines (28 loc) · 789 Bytes
/
Copy pathRequestDescriptor.cs
File metadata and controls
30 lines (28 loc) · 789 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
using System;
using System.Reflection;
namespace NetCoreStack.Proxy
{
public class RequestDescriptor
{
public MethodInfo TargetMethod { get; set; }
public Type ProxyType { get; }
public object[] Args { get; }
public string ClientIp { get; }
public string UserAgent { get; }
public string Query { get; }
public RequestDescriptor(MethodInfo targetMethod,
Type proxyType,
string clientIp,
string userAgent,
string query,
object[] args)
{
TargetMethod = targetMethod;
ProxyType = proxyType;
ClientIp = clientIp;
UserAgent = userAgent;
Query = query;
Args = args;
}
}
}