public static void AddCloudflareBlocker(this IServiceCollection services, CloudflareBlockerOptions options)
 {
     services.AddSingleton(options);
     services.AddSingleton <Functions.IHackerBlocker, CloudflareBlocker>();
 }
Exemple #2
0
 public CloudflareBlocker(CloudflareBlockerOptions options, IHttpClientFactory httpClientFactory)
 {
     _httpClientFactory = httpClientFactory;
     _options           = options;
 }