Walter.BOM Namespace
Walter.Web.FireWall Namespace
ASP-WAF Web application firewall for .Net 6, .Net 5, .Net Standard 2.1 and .Net Core 3.x

UserStackBuilderExtensions Class

This extension method allows you to integrate Userstack.com service into the FireWall framework.

Namespace:  Microsoft.Extensions.DependencyInjection
Assembly:  Walter.Web.FireWall.UserAgent.UsersStack (in Walter.Web.FireWall.UserAgent.UsersStack.dll)

Syntax


public static class UserStackBuilderExtensions

Remarks


This service allows you to buffer the user agent data in a database or in a file based structure.

Examples


The following sample shows how to use a dedicated storage for recording and persisting User-Agent data
C#
services.AddFireWall(FireWallTrail.License, FireWallTrail.DomainKey
 , domainName: new Uri("https://www.your-domain.com/", UriKind.Absolute)
 , options =>
{
    //your firewall settings
}).UseUserStackDBUserAgentStore(connectionString:Configuration.GetConnectionString("UserAgents"), option => {
    option.ApiKey = "123456789";//enter your key
    option.Https = false;//set false if you use free version
});

Thread Safety


Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

See Also


[Walter.Web.FireWall.UserAgent.UsersStack.UserStackBuilderExtensions.AsUserStack(Walter.Web.FireWall.Browser.IUAUserAgent)]
[Walter.Web.FireWall.UserAgent.UsersStack.UserStackBuilderExtensions.TryAsUserStack(Walter.Web.FireWall.Browser.IUAUserAgent, out IUserstackUserAgent?)]