one web application multiple database for each client difficulties with recognizing clients  Request.Url.Host
<p>I have one <code>asp.net(iis7)</code> web app and multiple database in back-end.</p>

<p>Every client has different url for example:</p>

<p><strong>client1.test.com<br>
client2.test.com</strong>  </p>

<p>Application should read url <code>(HttpContext.Current.Request.Url.Host)</code> and determine which database use.</p>

<p>The problem is that from <code>iis7 HttpContext.Current.Request.Url.Host</code> in class not working(Request is not available in this context ).</p>

<p>I don't have idea how to replace this mechanism.
One web app for every client is not a solution.</p>
