title: Simple Injector:Getting an instance in an extension method
body: <p>I have an extension method where I want to be able to get an instance of a class via the container
  e.g.</p>
  
  <pre><code>public static string EncryptString(this SecureString input)
  {
      if (input == null) return null;
  
      var encryptor = Injector.Container.GetInstance&lt;ICryptFactory&gt;().GetEncryptor(salt);
  
      return encryptor.Encrypt(input.ToInsecureString());
  }
  </code></pre>
  
  <p>However, I don't really want the dependency on the container but I can't work out how else to get an instance.</p>
  
  <p>Any ideas on how to do this?</p>