Files
Yi.Framework/Yi.Furion.Rbac/Yi.Framework.Module/ImageSharp/HeiCaptcha/HeiCaptchaExtension.cs
2023-04-13 21:12:06 +08:00

27 lines
703 B
C#

using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
namespace Yi.Framework.Module.ImageSharp.HeiCaptcha
{
public static class HeiCaptchaExtension
{
/// <summary>
/// 启用HeiCaptcha
/// </summary>
/// <param name="services"></param>
/// <returns></returns>
public static IServiceCollection AddHeiCaptcha(this IServiceCollection services)
{
if (services == null)
{
throw new ArgumentNullException(nameof(services));
}
services.AddScoped<SecurityCodeHelper>();
return services;
}
}
}