public WalletManagementService(NBitcoin.Altcoins.Reex instance, IFirebaseDbService firebaseDbService, IConfiguration configuration) { network = instance.Mainnet; this.firebaseDbService = firebaseDbService; this.rpcUsername = configuration["RPCUsername"]; this.rpcPassword = configuration["RPCPassword"]; this.rpcEndpoint = configuration["RPCEndpoint"]; this.rpcMinconf = int.Parse(configuration["RPCMinconf"] ?? "1"); }
public ReexController(IWalletManagementService walletManagementService, IMemoryCache memoryCache, IConfiguration configuration, IFirebaseDbService firebaseDbService) { this.walletManagementService = walletManagementService; this.memoryCache = memoryCache; this.cacheEntryOptions = new MemoryCacheEntryOptions() .SetAbsoluteExpiration(TimeSpan.FromMinutes(int.Parse(configuration["CacheExpiryInMinutes"] ?? "60"))); this.firebaseDbService = firebaseDbService; this.issuer = configuration["MyCompany"]; this.twoFactorAuth = new TwoFactorAuth(issuer); }