Author Top Nguyen
- Get Device information from
User-Agent
in header of theHttpRequest
. - Device Info contain: Location base on IP Address, Device OS version and so on.
- Package Manager
PM> Install-Package Elect.Web.HttpDetection
- .NET CLI
dotnet add package Elect.Web.HttpDetection
- HttpDetection work as
HttpRequest
extensions.var deviceInfo = HttpRequest.GetDeviceInformation();
- If you want to use HttpDetection in Service Layer, please use "HttpContextMiddleware" from Elect.Web.Middlewaresto get HttpContext of the current request then call the extensions method.
Elect.Web.HttpDetection is licensed under the MIT License.