Show / Hide Table of Contents

Class SimpleMathsCaptchaGenerator

Inheritance
object
SimpleMathsCaptchaGenerator
Implements
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Public.Web.Security.Captcha
Assembly: Volo.CmsKit.Public.Web.dll
Syntax
public class SimpleMathsCaptchaGenerator : ITransientDependency

Constructors

SimpleMathsCaptchaGenerator(IStringLocalizer<CmsKitResource>, IDistributedCache<CaptchaOutput>)

Declaration
public SimpleMathsCaptchaGenerator(IStringLocalizer<CmsKitResource> localizer, IDistributedCache<CaptchaOutput> cache)
Parameters
Type Name Description
IStringLocalizer<CmsKitResource> localizer
IDistributedCache<CaptchaOutput> cache

Properties

Cache

Declaration
protected IDistributedCache<CaptchaOutput> Cache { get; }
Property Value
Type Description
IDistributedCache<CaptchaOutput>

Localizer

Declaration
protected IStringLocalizer<CmsKitResource> Localizer { get; }
Property Value
Type Description
IStringLocalizer<CmsKitResource>

Methods

GenerateAsync()

Declaration
public virtual Task<CaptchaOutput> GenerateAsync()
Returns
Type Description
Task<CaptchaOutput>

GenerateAsync(CaptchaOptions)

Declaration
public virtual Task<CaptchaOutput> GenerateAsync(CaptchaOptions options)
Parameters
Type Name Description
CaptchaOptions options
Returns
Type Description
Task<CaptchaOutput>

GenerateAsync(CaptchaOptions, int?, int?)

Declaration
public virtual Task<CaptchaOutput> GenerateAsync(CaptchaOptions options, int? number1, int? number2)
Parameters
Type Name Description
CaptchaOptions options
int? number1
int? number2
Returns
Type Description
Task<CaptchaOutput>

ValidateAsync(Guid, int)

Declaration
public virtual Task ValidateAsync(Guid requestId, int value)
Parameters
Type Name Description
Guid requestId
int value
Returns
Type Description
Task

ValidateAsync(Guid, string)

Declaration
public virtual Task ValidateAsync(Guid requestId, string value)
Parameters
Type Name Description
Guid requestId
string value
Returns
Type Description
Task

Implements

ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform