mirror of
https://dev.azure.com/tstanciu94/Tuitio/_git/Tuitio
synced 2025-03-28 23:52:20 +02:00
16 lines
497 B
C#
16 lines
497 B
C#
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>();
|
|
}
|
|
}
|
|
}
|