public FullNodeBroadcastService(FullNodeWalletCache cache, IRepository repository, TumblingState tumblingState) { Cache = cache ?? throw new ArgumentNullException(nameof(cache)); Repository = repository ?? throw new ArgumentNullException(nameof(repository)); TumblingState = tumblingState ?? throw new ArgumentNullException(nameof(tumblingState)); BlockExplorerService = new FullNodeBlockExplorerService(cache, tumblingState); }
public FullNodeBroadcastService(FullNodeWalletCache cache, IRepository repository, TumblingState tumblingState) { if (repository == null) { throw new ArgumentNullException(nameof(repository)); } if (tumblingState == null) { throw new ArgumentNullException(nameof(tumblingState)); } _Repository = repository; _Cache = cache; _BlockExplorerService = new FullNodeBlockExplorerService(cache, repository, tumblingState); }