コード例 #1
0
ファイル: DirectChannel.cs プロジェクト: Chatina73/steeltoe
 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();
 }
コード例 #2
0
 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();
 }