title: Specify constructor parameter for open generic types using structuremap
body: <p>I defined following abstractions for implementing business validation in my project:</p>
  <pre><code>public interface IValidator&lt;in T&gt; 
  {
      ValidationResult Validate(T instance);
  }
  
  public abstract class InteractiveValidator&lt;T&gt; : IValidator&lt;T&gt;
  {
      protected readonly Func&lt;string, bool&gt; _questionDelegate;
      public abstract ValidationResult Validate(T instance);
  
      protected InteractiveValidator(Func&lt;string, bool&gt; questionDelegate)
      {
          _questionDelegate = questionDelegate;
      }
  }
  </code></pre>
  <p><code>OrderValidator</code> is something like this one:</p>
  <pre><code>public class OrderValidator:InteractiveValidator&lt;Order&gt;
  {
      public OrderValidator(Func&lt;string, bool&gt; questionCallBack) : base (questionCallBack)
      {
      }
      public override ValidationResult Validate(Order orderEntity)
      {
         ....
      }
  } 
  </code></pre>
  <p>I used following code for registring all validators using structuremap:</p>
  <pre><code>Scan(x =&gt;
  {
           x.AssemblyContainingType(typeof(InteractiveValidator&lt;&gt;));
           x.AddAllTypesOf(typeof(InteractiveValidator&lt;&gt;));
           x.ConnectImplementationsToTypesClosing(typeof(InteractiveValidator&lt;&gt;));
  });
  </code></pre>
  <p>In my WinForms project I want to inject the following code as my validator's callback:</p>
  <pre><code>(string question) =&gt; 
  {
       return MessageBox.Show(question, &quot;Question&quot;, MessageBoxButtons.YesNo) == 
              DialogResult.Yes; 
  }  
   
  </code></pre>
  <p>How can I specify the <code>Func&lt;string, bool&gt;</code> constructore parameter for all registered instances of  type <code>InteractiveValidator&lt;&gt;</code> using structuremap?</p>