コード例 #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);
 }