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);
 }
Beispiel #2
0
 internal RestNetwork(IRestNodeInternals rest) => _rest = rest ?? throw new ArgumentNullException(nameof(rest));