public void SendMessages(int messageCount, TransmissionType transmissionType)
        {
            NetCoreServerBenchmark.ProcessTransmissionType(transmissionType);

            for (int i = 0; i < messageCount; i++)
            {
                Broadcast(message);
            }
        }
        public EchoServer(Configuration config, BenchmarkStatistics benchmarkStatistics) : base(IPAddress.Parse(config.Address), config.Port)
        {
            ManualMode = config.Test == TestType.Manual;
            // Use Pinned Object Heap to reduce GC pressure
            message = GC.AllocateArray <byte>(config.MessageByteSize, true);
            config.Message.CopyTo(message, 0);

            NetCoreServerBenchmark.ProcessTransmissionType(config.Transmission);
            this.benchmarkStatistics = benchmarkStatistics;
        }