using StructureMap.Pipeline;
public static void Main()
i.For<ISomething>().Use<Something>().Transient();
i.For<ISomething>().Use<Something>().Singleton();
i.ForSingletonOf<Something>();
i.For<ISomething>().Use<Something>().ContainerScoped();
i.For<ISomething>().Use<Something>().AlwaysUnique();
i.For<ISomething>(Lifecycles.ThreadLocal).Use(() => new Something());
public class Something : ISomething
public interface ISomething