de2bd2f9
“wangming”
项目初始化
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using NCC.Dependency;
using System;
namespace NCC.RemoteRequest
{
/// <summary>
/// 远程请求静态类
/// </summary>
[SuppressSniffer]
public static class Http
{
/// <summary>
/// 获取远程请求代理
/// </summary>
/// <param name="serviceProvider"></param>
/// <returns>IHttpDispatchProxy</returns>
public static THttpDispatchProxy GetHttpProxy<THttpDispatchProxy>(IServiceProvider serviceProvider = default)
where THttpDispatchProxy : class, IHttpDispatchProxy
{
return App.GetService<THttpDispatchProxy>(serviceProvider);
}
}
}
|