20 lines
554 B
C#
20 lines
554 B
C#
using xIdentityService.Models;
|
|
using xIdentityService.Interfaces;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace xIdentityService.Extensions
|
|
{
|
|
public static class XAuthorizationExtensions
|
|
{
|
|
/// <summary>
|
|
/// Add Authorization Cache ...
|
|
/// </summary>
|
|
/// <param name="source"></param>
|
|
public static void AddXAuthorizationCache(
|
|
this IServiceCollection source
|
|
)
|
|
{
|
|
source.AddSingleton<IXAuthorizationCache, XAuthorizationCache>();
|
|
}
|
|
}
|
|
} |