忽略
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace PaymentCenterClient
|
||||
{
|
||||
public static class IServiceCollectionExtension
|
||||
{
|
||||
public static void AddPaymentCenterClient(this IServiceCollection service, string baseUrl = "")
|
||||
{
|
||||
if (!baseUrl.Has())
|
||||
{
|
||||
baseUrl = "http://paymentcenter/";
|
||||
}
|
||||
|
||||
PaymentCenterHttpClient._BaseUrl = baseUrl;
|
||||
|
||||
service.AddHttpClient();
|
||||
service.AddSingleton<PaymentCenterHttpClient>();
|
||||
}
|
||||
}
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace PaymentCenterClient
|
||||
{
|
||||
public static class IServiceCollectionExtension
|
||||
{
|
||||
public static void AddPaymentCenterClient(this IServiceCollection service, string baseUrl = "")
|
||||
{
|
||||
if (!baseUrl.Has())
|
||||
{
|
||||
baseUrl = "http://paymentcenter/";
|
||||
}
|
||||
|
||||
PaymentCenterHttpClient._BaseUrl = baseUrl;
|
||||
|
||||
service.AddHttpClient();
|
||||
service.AddSingleton<PaymentCenterHttpClient>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user