コード例 #1
0
 public ExchangerController(
     ApplicationDbContext dbContext,
     TokenSaleContract contract,
     IRateStore rateStore,
     IOptions <EthSettings> options,
     Crypto crypto,
     IEmailSender emailSender)
 {
     _dbContext   = dbContext;
     _contract    = contract;
     _options     = options.Value;
     _rateStore   = rateStore;
     _crypto      = crypto;
     _emailSender = emailSender;
 }
コード例 #2
0
 public RateManager(string name, RateLimitOptions options, IRateStore store)
 {
     _name    = name;
     _options = options;
     _store   = store;
 }