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");
}
}