public ProposalPaymentsService(IProposalPaymentsRepository proposalPaymentsRepository, ILogger <ProposalPaymentsService> logger, ILocalBlockchainRepository localBlockchainRepository) { this.ProposalPaymentsRepository = proposalPaymentsRepository ?? throw new ArgumentNullException(nameof(proposalPaymentsRepository));; this.Logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.LocalBlockchainRepository = localBlockchainRepository ?? throw new ArgumentNullException(nameof(LocalBlockchainRepository)); }
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)); }
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)); }