title: How do I Access the RequestContext Outside the Controller?
body: <h2>Background</h2>
  <p>I am trying to move business logic out from the controllers into their own services.</p>
  <h3>Controller</h3>
  <pre><code>public class AccountController : Controller
  {
      private readonly IAccountService _accountService; 
  
      public AccountController(IAccountService accountService)
      {
          _accountService = accountService;
      }
  
      ....
  }
  </code></pre>
  <p>I'm using Unity to inject dependencies.  I'd like to use the <code>Url.GenerateUrl()</code> helper method within the implementation of <code>IAccountService</code> but <code>Url</code> is a property against the controller.</p>
  <p>I looked at the MVC source to see how this is done but it requires me to access the <code>RequestContext</code> from outside of the controller, and I don't know how to do that.</p>
  <h2>Question</h2>
  <p>How do I access the RequestContext from outside the controller? If that won't solve my problem, how do I solve the problem given my setup?</p>