protected internal override void SendSystemMessage(PID pid, object message) { if (message is Failure msg) { _supervisorStrategy.HandleFailure(this, msg.Who, msg.RestartStatistics, msg.Reason, msg.Message); } }
private void HandleFailure(Failure msg) { if (Actor is ISupervisorStrategy supervisor) { supervisor.HandleFailure(this, msg.Who, msg.RestartStatistics, msg.Reason); return; } _supervisorStrategy.HandleFailure(this, msg.Who, msg.RestartStatistics, msg.Reason); }
private void HandleFailure(Failure msg) { // ReSharper disable once SuspiciousTypeConversion.Global if (Actor is ISupervisorStrategy supervisor) { supervisor.HandleFailure(this, msg.Who, msg.RestartStatistics, msg.Reason); return; } _supervisorStrategy.HandleFailure(this, msg.Who, msg.RestartStatistics, msg.Reason); }
public async Task HandleFailure(Failure failure) { await _supervisionStrategy.HandleFailure(this, failure); }