简体   繁体   English

在主机头asp.net mvc上调度

[英]Dispatching on the host header asp.net mvc

I'd like to implement Dispatching on the host header like stackexchange team did. 我想像stackexchange团队一样在主机头上实现Dispatching。 Any ideas? 有任何想法吗?

This technique is simply taking in HttpContext.Current.Request.Url or another request value and dynamically setting a connection string. 该技术只是采用HttpContext.Current.Request.Url或其他请求值并动态设置连接字符串。

So a user requests horsesaresweet.com and connects to the horsesaresweet database. 因此,用户请求horsesaresweet.com并连接到horsesaresweet数据库。

Nothing fancy. 没有什么花哨。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM