Example #1
0
 public DefaultRoute(string id, string?description, IRouteGraph routeGraph, bool allowSynchronousContinuations)
 {
     Id          = id ?? throw new ArgumentNullException(nameof(id));
     Description = description;
     RouteGraph  = routeGraph ?? throw new ArgumentNullException(nameof(routeGraph));
     AllowSynchronousContinuations = allowSynchronousContinuations;
 }
Example #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));
 }
Example #3
0
 public IChannel Create(IRouteGraph graph)
 => new DefaultChannel(graph, _serviceProvider, _serviceProvider.GetRequiredService <IReadOutput>());