File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
WebApiClientCore/Attributes/ActionAttributes Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace WebApiClientCore.Attributes
9
9
/// 例如http://www.abc.com/或http://www.abc.com/path/
10
10
/// </summary>
11
11
[ DebuggerDisplay ( "Host = {Host}" ) ]
12
- public class HttpHostAttribute : ApiActionAttribute
12
+ public class HttpHostAttribute : HttpHostBaseAttribute
13
13
{
14
14
/// <summary>
15
15
/// 获取完整主机域名
@@ -25,7 +25,6 @@ public class HttpHostAttribute : ApiActionAttribute
25
25
public HttpHostAttribute ( string host )
26
26
{
27
27
this . Host = new Uri ( host , UriKind . Absolute ) ;
28
- this . OrderIndex = int . MinValue ;
29
28
}
30
29
31
30
/// <summary>
Original file line number Diff line number Diff line change
1
+ namespace WebApiClientCore . Attributes
2
+ {
3
+ /// <summary>
4
+ /// 表示请求服务主机
5
+ /// </summary>
6
+ public abstract class HttpHostBaseAttribute : ApiActionAttribute
7
+ {
8
+ /// <summary>
9
+ /// 请求服务主机
10
+ /// </summary>
11
+ public HttpHostBaseAttribute ( )
12
+ {
13
+ this . OrderIndex = int . MinValue ;
14
+ }
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments