public virtual IChannelGroup Build(IChannelConnector connector, IChannelGroupConfiguration configuration) { if (connector == null) throw new ArgumentNullException("connector"); if (configuration == null) throw new ArgumentNullException("configuration"); Log.Debug("Building channel group named '{0}'.", configuration.GroupName); var workers = new TaskWorkerGroup<IMessagingChannel>(configuration.MinWorkers, configuration.MaxWorkers); return new DefaultChannelGroup(connector, configuration, workers); }
protected static void Build() { workerGroup = new TaskWorkerGroup<IMessagingChannel>(minWorkers, maxWorkers, maxBufferSize); }