public MessageLatencyBenchmark(IMessageLatencyTransport transport, IMessageLatencySettings settings) { _transport = transport; _settings = settings; if (settings.MessageCount / settings.Clients * settings.Clients != settings.MessageCount) { throw new ArgumentException("The clients must be a factor of message count"); } _payload = _settings.PayloadSize > 0 ? new string('*', _settings.PayloadSize) : null; }
public MessageLatencyBenchmark(IMessageLatencyTransport transport, IMessageLatencySettings settings) { _transport = transport; _settings = settings; if (settings.MessageCount / settings.Clients * settings.Clients != settings.MessageCount) { throw new ArgumentException("The clients must be a factor of message count"); } _payload = _settings.PayloadSize > 0 ? new string('*', _settings.PayloadSize) : null; }