tuitio/IdentityServer.Wrapper/DependencyInjectionExtensio...

16 lines
498 B
C#

using IdentityServer.Wrapper.Models;
using IdentityServer.Wrapper.Services;
using Microsoft.Extensions.DependencyInjection;
namespace IdentityServer.Wrapper
{
public static class DependencyInjectionExtension
{
public static void UseIdentityServices(this IServiceCollection services, string baseAddress)
{
services.AddSingleton(new ServiceConfiguration(baseAddress));
services.AddHttpClient<IIdentityService, IdentityService>();
}
}
}