Sign in Sign up
nuget

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; }

nuget View on Nuget

Activity

Latest release
1mo ago
Total releases
17
Cadence
~11 days
Last 12 months
3

Details

First release
Nov 21, 2023
Releases
Version Released
1.2.6 patch
1.2.5 patch
1.2.4 patch
1.2.3 patch
1.2.2 patch
1.2.1 patch
1.2.0 minor
1.1.9 patch
1.1.8 patch
1.1.7 patch
1.1.6 patch
1.1.5 patch
1.1.4 patch
1.1.3 patch
1.1.2 patch
1.1.1 patch
1.1.0 initial