public LogSystemInfo(RSG.Utils.ILogger logger, string reportsPath) { RSG.Utils.Argument.NotNull(() => logger); RSG.Utils.Argument.StringNotNullOrEmpty(() => reportsPath); this.logger = logger; this.reportsPath = reportsPath; }
/// <summary> /// Helper function to initalize the factory. /// </summary> private static SingletonManager InitFactory(RSG.Utils.ILogger logger, Factory factory, IReflection reflection) { //todo: all this code should merge into RSG.Factory. factory.AutoRegisterTypes(); var singletonManager = new SingletonManager(reflection, logger, factory); factory.Dep <IReflection>(reflection); factory.AddDependencyProvider(singletonManager); var singletonScanner = new SingletonScanner(reflection, logger, singletonManager); singletonScanner.ScanSingletonTypes(); return(singletonManager); }