18 lines
481 B
C#
18 lines
481 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using System;
|
|
|
|
namespace SequenceAuth.Lib;
|
|
|
|
public static class SequenceAuthExtensions
|
|
{
|
|
public static IServiceCollection AddSequenceAuth(this IServiceCollection services, Action<SequenceAuthOptions> configureOptions)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(configureOptions);
|
|
|
|
services.Configure(configureOptions);
|
|
services.AddScoped<SequenceManager>();
|
|
|
|
return services;
|
|
}
|
|
}
|