title: Ninject ToFactory not working with parameters
body: <p>I am attempting to use the ToFactory extension for Ninject, but am running into a few problems.</p>
  
  <p>If I have a constructor like this:</p>
  
  <pre><code>public ListenerReader(IDepen1 depen1, IDepen2 depen2, UdpClient client, DataReceiveModes dataReceiveMode, int receivePort)
  {
  }
  </code></pre>
  
  <p>And then I create a factory to automatically create the items like this:</p>
  
  <pre><code>  public interface IListenerReaderFactory
    {
      ListenerReader CreateListenerReader(UdpClient client, DataReceiveModes dataReceiveMode, int receivePort);
    }
  </code></pre>
  
  <p>I receive an activation error when I try to call the injected factory:<br/>
   Error activating int
  No matching bindings are available, and the type is not self-bindable.</p>
  
  <p><p>
  It seems like Ninject does not like to inject primitive types in the factories. I have also seen this same error but with the string type in another factory?</p>
  
  <p><p></p>
  
  <p>If this does not work do I have to separate the parameters into a called method?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>It appears that the type in question was being injected outside of the factory. Thus Ninject was trying to create bindings for the enum and int types which failed.</p>