public BlockchainExplorer(ServiceManager services, IExplorerServiceFactory factory = null) { if (factory == null) { factory = new RealExplorerServiceFactory(); } ExplorerConnectionService = services.Add(factory.CreateExplorerConnectionService()); ExplorerDatabaseService = services.Add(factory.CreateExplorerDatabaseService()); ExplorerDataTransformationService = services.Add(factory.CreateExplorerDataTransformationService()); OrderBookService = services.Add(factory.CreateOrderBookService()); }