GeneralCommon
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
- 2y ago
- Total releases
- 3
- Cadence
- ~30 days
- Last 12 months
- 0
Details
- First release
- Aug 11, 2023
| Version | Released | |
|---|---|---|
1.1.0
minor
|
1.1.0
minor
Dependencies (10)
+ 2 more |
|
1.0.9
patch
|
1.0.9
patch
Dependencies (10)
+ 2 more |
|
1.0.8
initial
|
1.0.8
initial
Dependencies (10)
+ 2 more |