Akka.Remote.Tests.Performance.Transports.RemoteMessagingThroughputSpecBase.TwoWay C# (CSharp) Method

TwoWay() private method

private TwoWay ( BenchmarkContext context ) : void
context NBench.BenchmarkContext
return void
        public void TwoWay(BenchmarkContext context)
        {
            for (var i = 0; i < RemoteMessageCount;)
            {
                _remoteEcho.Tell("foo", _receiver); // send a remote message
                ++i;
            }

            if (!_resetEvent.Wait(WaitTimeout))
            {
                context.Trace.Warning($"Timed out after {WaitTimeout}s");
            }
        }