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