© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
20 replies
TheHitchhiker

❔ How to get hostname string ?

i need the hostname string in MappingProfile for automapper
i have no access to
HttpContext.Current.Request.Url.Host
HttpContext.Current.Request.Url.Host

so how can i do that?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ how to avoid string.Join with empty strings?
C#CC# / help
3y ago
How to make string exception???
C#CC# / help
4y ago
How to make string to int
C#CC# / help
3y ago
question about strings & stringbuilder!
C#CC# / help
2y ago