public SingletonScanner(IReflection reflection, ILogger logger, ISingletonManager singletonManager) { Argument.NotNull(() => reflection); Argument.NotNull(() => logger); Argument.NotNull(() => singletonManager); this.reflection = reflection; this.logger = logger; this.singletonManager = singletonManager; }
private App() { var logger = new UnityLogger(); var factory = new Factory("App", logger); factory.Dep <ILogger>(logger); factory.AutoRegisterTypes(); this.Factory = factory; this.singletonManager = factory.AutoInstantiateSingletons(); this.singletonManager.Startup(); }