public BlockChainManager(IEventAggregator eventAggregator, IBlockChainRepository blockchainRepo) { this._eventAggregator = eventAggregator; this._blockChainRepository = blockchainRepo; this.currentBlockChain = this._blockChainRepository.FirstOrDefault() ?? new BlockChain { Chain = new List <Block>() }; this._blockChainRepository.DeleteAll(); this._blockChainRepository.Add(currentBlockChain); this.ProcessEvents(); }
public CertificateController(IEventAggregator eventAggregator, IBlockChainRepository blockChainRepo, ICustomerRepository customerRepo, IShipRepository shipRepo, IHostingEnvironment env) { this.EventAggregator = eventAggregator; this.BlockChainRepo = blockChainRepo; this.ShipRepo = shipRepo; this.CustomerRepo = customerRepo; this.Env = env; }
public BlockChainService(IValidationDictionary validationDictionary, IBlockChainRepository blockChainRepository) { _blockChainRepository = blockChainRepository; _validationDictionary = validationDictionary; }