public TailChopTestActor(int sleepTime)
{
ReceiveAsync<string>(async command =>
{
switch (command)
{
case "stop":
Context.Stop(Self);
break;
case "times":
Sender.Tell(_timesResponded);
break;
default:
await Task.Delay(sleepTime);
Sender.Tell("ack");
_timesResponded++;
break;
}
});
}
}