tuitio/IdentityServer.Wrapper/DependencyInjectionExtensio...

16 lines
498 B
C#
Raw Normal View History

2020-12-21 00:45:10 +02:00
using IdentityServer.Wrapper.Models;
using IdentityServer.Wrapper.Services;
using Microsoft.Extensions.DependencyInjection;
namespace IdentityServer.Wrapper
{
public static class DependencyInjectionExtension
{
2020-12-21 01:07:34 +02:00
public static void UseIdentityServices(this IServiceCollection services, string baseAddress)
2020-12-21 00:45:10 +02:00
{
services.AddSingleton(new ServiceConfiguration(baseAddress));
services.AddHttpClient<IIdentityService, IdentityService>();
}
}
}