static DIConfig() { DI.Register <ILoggerFactory, LoggerFactory>(reuse: Reuse.Singleton, made: Made.Of(() => new LoggerFactory())); DI.Register(typeof(ILogger <>), typeof(Logger <>), reuse: Reuse.Singleton); DI.Register(made: Made.Of(() => ConfigurationFactory.CreateConfigurationRoot())); DI.Register <ReadFileService>(reuse: Reuse.Singleton); DI.Register <BlockService>(); DI.Register <IHashCalculator, Sha256HashCalculator>(reuse: Reuse.Singleton); DI.Register <RepositoryManager>(); DI.Register <QueryTemplatesService>(reuse: Reuse.Singleton); DI.Register <FileContentObtainer>(reuse: Reuse.Singleton); DI.Register <StoreConfiguration>(); DI.Register <OntologyUploadApp>(); }