Class HttpContextWebClientInfoProvider
Inheritance
HttpContextWebClientInfoProvider
Assembly: Volo.Abp.AspNetCore.dll
Syntax
[Dependency(ReplaceServices = true)]
public class HttpContextWebClientInfoProvider : IWebClientInfoProvider, ITransientDependency
Constructors
HttpContextWebClientInfoProvider(ILogger<HttpContextWebClientInfoProvider>, IHttpContextAccessor, IHttpUserAgentParserProvider)
Declaration
public HttpContextWebClientInfoProvider(ILogger<HttpContextWebClientInfoProvider> logger, IHttpContextAccessor httpContextAccessor, IHttpUserAgentParserProvider httpUserAgentParser)
Parameters
Properties
BrowserInfo
Declaration
public string? BrowserInfo { get; }
Property Value
ClientIpAddress
Declaration
public string? ClientIpAddress { get; }
Property Value
DeviceInfo
Declaration
public string? DeviceInfo { get; }
Property Value
HttpContextAccessor
Declaration
protected IHttpContextAccessor HttpContextAccessor { get; }
Property Value
HttpUserAgentParser
Declaration
protected IHttpUserAgentParserProvider HttpUserAgentParser { get; }
Property Value
| Type |
Description |
| IHttpUserAgentParserProvider |
|
Logger
Declaration
protected ILogger<HttpContextWebClientInfoProvider> Logger { get; }
Property Value
Methods
GetBrowserInfo()
Declaration
protected virtual string? GetBrowserInfo()
Returns
GetClientIpAddress()
Declaration
protected virtual string? GetClientIpAddress()
Returns
GetDeviceInfo()
Declaration
protected virtual string? GetDeviceInfo()
Returns
Implements
Extension Methods