title: Injecting Corresponding implementation using StructureMap
body: <p>I have a class with the following structure</p>
  
  <pre><code>class Measure
  {
      public MeasureType measureType { get; set; }
      public readonly IMeasureService _service ;
  
      public Measure(IMeasureService service)
      {
          _service = service;
      }
      public Calculate()
      {
          _service.Calculate(this);
      }
  }
  </code></pre>
  
  <p>So i have different implementation of MeasureService for different measureTypes. Is it possible to use StructureMap to inject the corresponding MeasureService based on the measureType.</p>
  
  <p>MeasureType is just an enum type and will never get changed throughout the instance.</p>