title: Using Unity Framework, inject into System.Windows.Forms.Form page
body: <p>I have a form:</p>
  
  <pre><code>public partial class mdiAuthenticationForm : Form
      {
          public Services.Authentication.IAuthentication Authenticator { get; set; 
          public Services.Authentication.IAuthorization Authorizor { get; set; }
  </code></pre>
  
  <p>and I want to inject concrete classes for the two attributes above.</p>
  
  <p>I have a type for each of them, and am using the app.config for the configuration information.  But, I don't want to create an interface for each page, just to inject, so, how can I inject into each page?</p>
  
  <p>Basically, what to I put in the type attribute in the following type element, or, how can I do this?</p>
  
  <pre><code>  &lt;type type="" mapTo="mdiAuthenticationForm,project"&gt;
    &lt;typeConfig extensionType="Microsoft.Practices.Unity.Configuration.TypeInjectionElement, Microsoft.Practices.Unity.Configuration"&gt;
        &lt;property name="Authenticator" propertyType="Services.Authentication.IAuthentication,project"&gt;
          &lt;dependency name="mssqlauth" /&gt;
        &lt;/property&gt;
      &lt;property name="Authorizor" propertyType="Services.Authentication.IAuthorization,project"&gt;
        &lt;dependency name="mssqlautz" /&gt;
      &lt;/property&gt;
    &lt;/typeConfig&gt;
    &lt;/type&gt;
  </code></pre>
  
  <p>I am using the Unity Framework for this, btw.</p>
  
  <p>Thank you.</p>
  
  <p>Edit: I get the container and then I am trying to inject by using this:</p>
  
  <pre><code>Container.Configure&lt;InjectedMembers&gt;().ConfigureInjectionFor&lt;mdiAuthenticationForm&gt;();
  </code></pre>