void Run2() { var factory = new Factory(); factory.RegisterTransient(getHello2); //------------- var hello = factory.Resolve<ISayHello>(); hello.SayHello("Jim"); }