protected virtual void CreateLogger()
        {
            m_logger = new DefaultPlatformLogProvider();
#if DEBUG
            m_logger.AddLogger(new ConsoleLogger());
#endif
        }
Ejemplo n.º 2
0
        public ModuleManager(/*IModuleLoader[] loaders,*/ IModuleInitializer moduleInitializer, IModuleLibrary moduleCatalog, IPlatformLogProvider logger)
        {
            if (moduleInitializer == null)
            {
                throw new ArgumentNullException(nameof(moduleInitializer));
            }

            if (moduleCatalog == null)
            {
                throw new ArgumentNullException(nameof(moduleCatalog));
            }

            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            m_moduleInitializer = moduleInitializer;
            m_library           = moduleCatalog;
            m_logger            = logger;
            m_subscribedLoaders = new HashSet <IModuleLoader>();
            m_loaders           = new List <IModuleLoader>(/*loaders*/);
        }
Ejemplo n.º 3
0
 public PlatformServices(IPlatformLogProvider logger, IPlatformDispatcherProvider dispatcher, IPlatformStorageProvider storage)
 {
     m_logger     = logger;
     m_dispatcher = dispatcher;
     m_storage    = storage;
 }