Files
juipnet/Infrastructure/ServiceClient/ScheduledTaskClient/IServiceCollectionExtension.cs

14 lines
402 B
C#
Raw Normal View History

2020-12-28 14:55:48 +08:00
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>();
}
}
2020-10-07 20:25:03 +08:00
}