コード例 #1
0
 public BlockChainController(IOptions <BlockChain> blockChain, UserDbContext userDbContext, BlockChainsDbContext sdb, ProductInfoDbContext pdb)
 {
     _userContext          = userDbContext;
     _productInfoDbContext = pdb;
     blockChainsDbContext  = sdb;
     SupplyBlockChain      = blockChain.Value;
 }
コード例 #2
0
 public ScheduledMiner(IConfiguration cfg, IOptions <BlockChain> blockChain, BlockChainsDbContext sdb, ILogger <ScheduledMiner> log)
 {
     configuration        = cfg;
     PureMedBlockChain    = blockChain.Value;
     blockChainsDbContext = sdb;
     Verifier1Chain       = new Verifier_1BlockChain();
     Verifier2Chain       = new Verifier_2BlockChain();
     Verifier3Chain       = new Verifier_3BlockChain();
     tempBlockChains      = new StoreBlockChains();
     logger = log;
 }