internal RestAbstractChain(IRestNodeInternals rest, ChainIdModel chainId) { if (chainId == null) { throw new ArgumentNullException(nameof(chainId)); } _rest = rest ?? throw new ArgumentNullException(nameof(rest)); Id = chainId.Id; Name = chainId.Name; _records = new RecordsImplementation(this); _recordsAsJson = new RecordsAsJsonImplementation(this); _interlockings = new InterlockingsImplementation(this); }
internal RestNetwork(IRestNodeInternals rest) => _rest = rest ?? throw new ArgumentNullException(nameof(rest));