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