public Enumerator(DefaultChannel channel, CancellationToken cancellationToken, IReadOutput output) { _channel = channel ?? throw new ArgumentNullException(nameof(channel)); _cancellationToken = cancellationToken; _output = output; _current = _channel._graph.Root; }
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)); }