2020-12-28 14:55:48 +08:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace ServiceClient
|
|
|
|
|
{
|
|
|
|
|
public static class IServiceCollectionExtension
|
|
|
|
|
{
|
|
|
|
|
public static void AddBaseInfoClient(this IServiceCollection service, string baseUrl)
|
|
|
|
|
{
|
|
|
|
|
BaseInfoHttpClient._BaseUrl = baseUrl;
|
|
|
|
|
|
|
|
|
|
service.AddSingleton<BaseInfoHttpClient>();
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-10-07 20:25:03 +08:00
|
|
|
}
|