Skip to content

Commit 6a5e85e

Browse files
committed
增加HttpHostBaseAttribute
1 parent c5f2421 commit 6a5e85e

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

WebApiClientCore/Attributes/ActionAttributes/HttpHostAttribute.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

0 commit comments

Comments
 (0)