Confusion with StructureMap 4.6 Transient Lifecycle
问题 I am using StructureMap 4.6 as my IoC Container. I am a bit confused about its lifecycles. As I have read in its documentation, Transient will create a single instance of the object per container. Supported Lifecycles I am checking this scenario by creating a simple Console Application project. My code is as below: Program.cs class Program { private static IContainer _Container; static void Main(string[] args) { _Container = Container.For<ConsoleRegistry>(); var serv1 = _Container.GetInstance