title: Use dependency injection in static class
body: <p>I need to use Dependency Injection in a static class.</p>
  
  <p>the method in the static class needs the value of an injected dependency.</p>
  
  <p>The following code sample demonstrates my problem:</p>
  
  <pre><code>public static class XHelper
  {
      public static TResponse Execute(string metodo, TRequest request)
      {
          // How do I retrieve the IConfiguracion dependency here?
          IConfiguracion x = ...;
  
          // The dependency gives access to the value I need
          string y = x.apiUrl;
  
          return xxx;
      }
  }
  </code></pre>