16 lines
396 B
C#
16 lines
396 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using PowCapServer.Abstractions;
|
|
|
|
namespace zero.Security;
|
|
|
|
internal static class StaticCaptchaService
|
|
{
|
|
private static IServiceProvider Services { get; set; }
|
|
|
|
public static void Configure(IServiceProvider services)
|
|
{
|
|
Services = services;
|
|
}
|
|
|
|
public static ICaptchaService Get() => Services.GetRequiredService<ICaptchaService>();
|
|
} |