Пример #1
0
 public Enumerator(DefaultChannel channel, CancellationToken cancellationToken, IReadOutput output)
 {
     _channel           = channel ?? throw new ArgumentNullException(nameof(channel));
     _cancellationToken = cancellationToken;
     _output            = output;
     _current           = _channel._graph.Root;
 }
Пример #2
0
 public DefaultChannel(IRouteGraph graph, IServiceProvider service, IReadOutput output)
 {
     _graph   = graph ?? throw new ArgumentNullException(nameof(graph));
     _service = service ?? throw new ArgumentNullException(nameof(service));
     _output  = output ?? throw new ArgumentNullException(nameof(output));
 }