XT.Common
1、包含SignalR客户端 2、包含一些扩展方法 3、包含Http,使用如下 public BaseApiService(IHttpClientFactory httpClientFactory, IApiConfig apiConfig) { _clientFactory = httpClientFactory; _apiConfig = apiConfig; } public HttpClient CreateHttpClient() { var client = _clientFactory.CreateClient(); if (!string.IsNullOrEmpty(_apiConfig.Token)) client.DefaultRequestHeaders.Add("Authorization", "Bearer " + _apiConfig.Token); client.BaseAddress = new Uri(_apiConfig.RemoteApiUrl); return client; }
Activity
- Latest release
- 1mo ago
- Total releases
- 17
- Cadence
- ~11 days
- Last 12 months
- 3
Details
- First release
- Nov 21, 2023
| Version | Released | |
|---|---|---|
1.2.6
patch
|
1.2.6
patch
Dependencies (10)
+ 2 more |
|
1.2.5
patch
|
1.2.5
patch
Dependencies (10)
+ 2 more |
|
1.2.4
patch
|
1.2.4
patch
Dependencies (10)
+ 2 more |
|
1.2.3
patch
|
1.2.3
patch
Dependencies (10)
+ 2 more |
|
1.2.2
patch
|
1.2.2
patch
Dependencies (10)
+ 2 more |
|
1.2.1
patch
|
1.2.1
patch
Dependencies (10)
+ 2 more |
|
1.2.0
minor
|
1.2.0
minor
Dependencies (9)
+ 1 more |
|
1.1.9
patch
|
1.1.9
patch
Dependencies (9)
+ 1 more |
|
1.1.8
patch
|
1.1.8
patch
Dependencies (9)
+ 1 more |
|
1.1.7
patch
|
1.1.7
patch
Dependencies (9)
+ 1 more |
|
1.1.6
patch
|
1.1.6
patch
Dependencies (9)
+ 1 more |
|
1.1.5
patch
|
1.1.5
patch
Dependencies (9)
+ 1 more |
|
1.1.4
patch
|
1.1.4
patch
Dependencies (9)
+ 1 more |
|
1.1.3
patch
|
1.1.3
patch
Dependencies (9)
+ 1 more |
|
1.1.2
patch
|
1.1.2
patch
Dependencies (9)
+ 1 more |
|
1.1.1
patch
|
1.1.1
patch
Dependencies (9)
+ 1 more |
|
1.1.0
initial
|
1.1.0
initial
Dependencies (9)
+ 1 more |