Walter.Web.FireWall
TryGet Method (IUserAgentsRepository)
Walter.Web.FireWall Assembly > Walter.Web.FireWall.Infrastructure.Factory Namespace > IUserAgentsRepository Interface : TryGet Method
the browser provided header key or blank if missing
the meta data object used by the Guard
Tries to obtain the agent meta data
Syntax

Parameters

userAgent
the browser provided header key or blank if missing
agent
the meta data object used by the Guard

Return Value

True if the meta data was retrieved
Remarks

The native interface IUAUserAgent meta data will be updated by the system if you license comes with a data subscription. The FireWall will collect firewall related data without a data subscription however it allows for a more accurate crawler detection

The user agent data can be extended when using one of the NuGet Packages: Walter.Web.FireWall.UserAgent.UsersStack as you can then use the extension method IUAUserAgent.AsUserstack() to retrieve a IUserstackUserAgent.
when you have a free or paid account from https://userstack.com/

Walter.Web.FireWall.UserAgent.WhatIsMyBrowser as you can then use the extension method IUAUserAgent.AsWhatIsMyBrowser() to retrieve a IWhatIsMyBrowserUserAgent.
when you have a free or paid account for https://developers.whatismybrowser.com/

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IUserAgentsRepository Interface
IUserAgentsRepository Members