public PeerToPeerMessageHandler(ILogger <PeerToPeerMessageHandler> logger, BlockService blockService, Base64Handler base64Handler, BlockContentService blockContentService) { _logger = logger; _blockService = blockService; _base64Handler = base64Handler; _blockContentService = blockContentService; _rdf4jSerializationHandler = new DotNetRdfSerializationHandler(); _rdf4jMapper = new DotNetRdfMapper(); }
public BlockService(ILogger <BlockService> logger, IHashCalculator hashCalculator, IHashingService hashingService, RepositoryManager repositoryManager, StoreConfiguration sConfig) { _logger = logger; _chainGraphIri = sConfig.ChainGraphIri; _hashCalculator = hashCalculator; _hashingService = hashingService; _repositoryManager = repositoryManager; _rdf4jSerializationHandler = new DotNetRdfSerializationHandler(); _rdf4jMapper = new DotNetRdfMapper(); }
public RepositoryManager(ILogger <RepositoryManager> logger, FileContentObtainer fileContentObtainer, IHashCalculator hashCalculator, IHashingService hashingService, ITriplestoreRepository repository, StoreConfiguration sConfig) { _logger = logger; _fileContentObtainer = fileContentObtainer; _hashCalculator = hashCalculator; _hashingService = hashingService; _repository = repository; _chainGraphIri = sConfig.ChainGraphIri; _dotNetRdfMapper = new DotNetRdfMapper(); _dotNetRdfSerializationHandler = new DotNetRdfSerializationHandler(); Init(); }
public AbstractHashingBenchmarkService() { rdf4jMapper = new DotNetRdfMapper(); rdf4jSerializationHandler = new DotNetRdfSerializationHandler(); }