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
99 /// 例如http://www.abc.com/或http://www.abc.com/path/
1010 /// </summary>
1111 [ DebuggerDisplay ( "Host = {Host}" ) ]
12- public class HttpHostAttribute : ApiActionAttribute
12+ public class HttpHostAttribute : HttpHostBaseAttribute
1313 {
1414 /// <summary>
1515 /// 获取完整主机域名
@@ -25,7 +25,6 @@ public class HttpHostAttribute : ApiActionAttribute
2525 public HttpHostAttribute ( string host )
2626 {
2727 this . Host = new Uri ( host , UriKind . Absolute ) ;
28- this . OrderIndex = int . MinValue ;
2928 }
3029
3130 /// <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