public DummyAsyncActor(AutoResetEvent autoResetEvent) { ReceiveAsync<string>(async m => { await Task.Delay(500); autoResetEvent.Set(); }); } }