public DirectChannel(IApplicationContext context, ILoadBalancingStrategy loadBalancingStrategy, string name, ILogger logger = null) : base(context, new UnicastingDispatcher(context), name, logger) { Dispatcher.LoadBalancingStrategy = loadBalancingStrategy; Dispatcher.MaxSubscribers = int.MaxValue; Writer = new DirectChannelWriter(this, logger); Reader = new NotSupportedChannelReader(); }
public DirectChannel(IServiceProvider serviceProvider, ILoadBalancingStrategy loadBalancingStrategy, string name, ILogger logger = null) : base(serviceProvider, new UnicastingDispatcher(serviceProvider), name, logger) { Dispatcher.LoadBalancingStrategy = loadBalancingStrategy; Dispatcher.MaxSubscribers = int.MaxValue; Writer = new DirectChannelWriter(this, logger); Reader = new NotSupportedChannelReader(); }