FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Blog.Core/Blog.Core.Common/HttpRestSharp/IRestSharp.cs at master · githubsunyf/Blog.Core · GitHub
githubsunyf
Blog.Core
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Blog.Core
/
Blog.Core.Common
/
HttpRestSharp
/
IRestSharp.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (41 loc) · 1.37 KB
Breadcrumbs
Blog.Core
/
Blog.Core.Common
/
HttpRestSharp
/
IRestSharp.cs
Copy path
File metadata and controls
45 lines (41 loc) · 1.37 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using
RestSharp
;
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Text
;
namespace
Blog
.
Core
.
Common
.
HttpRestSharp
{
/// <summary>
/// API请求执行者接口
/// </summary>
public
interface
IRestSharp
{
/// <summary>
/// 同步执行方法
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
IRestResponse
Execute
(
IRestRequest
request
)
;
/// <summary>
/// 同步执行方法
/// </summary>
/// <typeparam name="T">返回值</typeparam>
/// <param name="request">请求参数</param>
/// <returns></returns>
T
Execute
<
T
>
(
IRestRequest
request
)
where
T
:
new
(
)
;
/// <summary>
/// 异步执行方法
/// </summary>
/// <param name="request">请求参数</param>
/// <param name="callback"></param>
/// <returns></returns>
RestRequestAsyncHandle
ExecuteAsync
(
IRestRequest
request
,
Action
<
IRestResponse
>
callback
)
;
/// <summary>
/// 异步执行方法
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="request"></param>
/// <param name="callback"></param>
/// <returns></returns>
RestRequestAsyncHandle
ExecuteAsync
<
T
>
(
IRestRequest
request
,
Action
<
IRestResponse
<
T
>
>
callback
)
where
T
:
new
(
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL