15 lines
397 B
C#
15 lines
397 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
|
|
namespace DigitalData.Core.Security
|
|
{
|
|
public static class DIExtensions
|
|
{
|
|
public static IServiceCollection AddSecurity(this IServiceCollection services)
|
|
{
|
|
services.TryAddScoped(_ => CryptFactory.Static);
|
|
|
|
return services;
|
|
}
|
|
}
|
|
} |