Exemplo n.º 1
0
 public BlockchainService(ILogger <BlockchainService> logger, IBlockchainRepository BlockchainRepository, ProposalPaymentsService proposalPaymentsService, ILocalBlockchainRepository localBlockchainRepository)
 {
     this.Logger = logger ?? throw new System.ArgumentNullException(nameof(logger));
     this.BlockchainRepository      = BlockchainRepository ?? throw new ArgumentNullException(nameof(BlockchainRepository));
     this.ProposalPaymentsService   = proposalPaymentsService ?? throw new ArgumentNullException(nameof(proposalPaymentsService));
     this.LocalBlockchainRepository = localBlockchainRepository ?? throw new ArgumentNullException(nameof(localBlockchainRepository));
 }
Exemplo n.º 2
0
 public LocalBlockchainService(ILogger <LocalBlockchainService> logger, ProposalPaymentsService proposalPaymentsService, ILocalBlockchainRepository localBlockchainRepository, IProposalPaymentsRepository proposalPaymentsRepository, IMasternodeCountRepository masternodeCountRepository, IBlockCountRepository blockCountRepository, IConfiguration iConfiguration)
 {
     this.Logger = logger ?? throw new ArgumentNullException(nameof(logger));
     this.ProposalPaymentsService    = proposalPaymentsService ?? throw new ArgumentNullException(nameof(proposalPaymentsService));
     this.LocalBlockchainRepository  = localBlockchainRepository ?? throw new ArgumentNullException(nameof(localBlockchainRepository));
     this.ProposalPaymentsRepository = proposalPaymentsRepository ?? throw new ArgumentNullException(nameof(proposalPaymentsRepository));
     this.MasternodeCountRepository  = masternodeCountRepository ?? throw new ArgumentNullException(nameof(masternodeCountRepository));
     this.BlockCountRepository       = blockCountRepository ?? throw new ArgumentNullException(nameof(blockCountRepository));
     this.IConfiguration             = iConfiguration ?? throw new ArgumentNullException(nameof(iConfiguration));
 }