I'd like to implement Dispatching on the host header like stackexchange team did. Any ideas?
This technique is simply taking in HttpContext.Current.Request.Url or another request value and dynamically setting a connection string.
So a user requests horsesaresweet.com and connects to the horsesaresweet database.
Nothing fancy.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.