Created
October 17, 2021 20:23
-
-
Save uzbekdev1/71743be2527bc2f263ab509ebb08d076 to your computer and use it in GitHub Desktop.
.net core client info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ip = HttpContext.Connection.RemoteIpAddress.ToString(); | |
var agent = HttpContext.Request.Headers["User-Agent"].ToString(); | |
var url = HttpContext.Request.GetDisplayUrl(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment