public RPCBlockExplorerService(RPCClient client, RPCWalletCache cache, IRepository repo) { _RPCClient = client ?? throw new ArgumentNullException(nameof(client)); _Repo = repo ?? throw new ArgumentNullException("repo"); _Cache = cache ?? throw new ArgumentNullException("cache"); _RPCBatch = new RPCBatch <bool>(client); }
public RPCBroadcastService(RPCClient rpc, RPCWalletCache cache, IRepository repository) { _RPCClient = rpc ?? throw new ArgumentNullException(nameof(rpc)); _Repository = repository ?? throw new ArgumentNullException(nameof(repository)); _Cache = cache; _BlockExplorerService = new RPCBlockExplorerService(rpc, cache, repository); _RPCBatch = new RPCBatch <bool>(_RPCClient); }
public RPCWalletService(RPCClient rpc) { _RPCClient = rpc ?? throw new ArgumentNullException(nameof(rpc)); _FundingBatch = new FundingBatch(rpc); _ReceiveBatch = new ReceiveBatch(rpc); _RPCBatch = new RPCBatch <bool>(rpc); BatchInterval = TimeSpan.Zero; AddressGenerationBatchInterval = TimeSpan.Zero; }
public RPCBlockExplorerService(RPCClient client, RPCWalletCache cache, IRepository repo) { if (client == null) { throw new ArgumentNullException(nameof(client)); } if (repo == null) { throw new ArgumentNullException("repo"); } if (cache == null) { throw new ArgumentNullException("cache"); } _RPCClient = client; _Repo = repo; _Cache = cache; _RPCBatch = new RPCBatch(client); }