Files
juipnet/Infrastructure/ServiceClient/ScheduledTaskClient/IServiceCollectionExtension.cs
“wanyongkang” 40a40b6d36 忽略
2020-12-28 14:55:48 +08:00

14 lines
402 B
C#

using Microsoft.Extensions.DependencyInjection;
namespace ScheduledTaskClient
{
public static class IServiceCollectionExtension
{
public static void AddMsgCenterClient(this IServiceCollection service, string baseUrl="http://scheduledtask")
{
ScheduledTaskHttpClient._BaseUrl = baseUrl;
service.AddSingleton<ScheduledTaskHttpClient>();
}
}
}