tuitio/IdentityServer.Wrapper/DependencyInjectionExtensio...

16 lines
497 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
{
public static void UseIdentityService(this IServiceCollection services, string baseAddress)
{
services.AddSingleton(new ServiceConfiguration(baseAddress));
services.AddHttpClient<IIdentityService, IdentityService>();
}
}
}