I have a bit of StructureMap config like so:
x.ForConcreteType<OrderProcessor>().Configure
.Ctor<string>("param1").EqualToAppSetting("setting1")
.Ctor<string>("param2").EqualToAppSetting("setting2")
.Ctor<string>("param3").EqualToAppSetting("setting3");
This works, but it is a bit of a magic-string approach. If I add or remove a constructor parameter, or change its name, but forget to update the StructureMap config, I won't find out about it until runtime.
Is there an alternate syntax in StructureMap that is more strongly-typed? Is this even possible?