public static ICaptchaBuilder AddConfiguration(this ICaptchaBuilder builder, Action <CaptchaOptions> configureOptions) { builder.Services.Configure(configureOptions); return(builder); }
public static ICaptchaBuilder UseDistributedStore(this ICaptchaBuilder builder) { builder.Services.TryAdd(ServiceDescriptor.Scoped <IStorage, DistributedStorage>()); return(builder); }