Skip to content

Commit 4f0ef63

Browse files
committed
JsonRpcMethodAttribute允许修饰Interface
1 parent 5099e23 commit 4f0ef63

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

WebApiClientCore.Extensions.JsonRpc/Attributes/JsonRpcMethodAttribute.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.Net.Http.Headers;
1+
using System.Net.Http.Headers;
32
using System.Threading.Tasks;
43
using WebApiClientCore.Extensions.JsonRpc;
54

@@ -8,7 +7,6 @@ namespace WebApiClientCore.Attributes
87
/// <summary>
98
/// 表示Json-Rpc请求方法
109
/// </summary>
11-
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
1210
public class JsonRpcMethodAttribute : JsonReturnAttribute, IApiActionAttribute, IApiFilterAttribute
1311
{
1412
/// <summary>

WebApiClientCore.Extensions.JsonRpc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
WebApiClientCore的JsonRpc调用扩展
33

44
### 使用方式
5-
使用[JsonRpcMethod]修饰JsonRpc方法方法,使用[JsonRpcParam]修复JsonRpc参数
5+
使用[JsonRpcMethod]修饰JsonRpc方法方法,使用[JsonRpcParam]修饰JsonRpc参数
66

77
```c#
88
[HttpHost("http://localhost:5000/jsonrpc")]

0 commit comments

Comments
 (0)