/// <summary> /// Logs that the event handler of the specified actor terminated. /// </summary> /// <param name="id">The id of the actor that the state will execute in.</param> /// <param name="stateName">The state name, if the actor is a state machine and a state exists, else null.</param> /// <param name="dequeueStatus">The status returned as the result of the last dequeue operation.</param> public void LogEventHandlerTerminated(ActorId id, string stateName, DequeueStatus dequeueStatus) { if (this.Logs.Count > 0) { foreach (var log in this.Logs) { log.OnEventHandlerTerminated(id, stateName, dequeueStatus); } } }
/// <inheritdoc/> public void OnEventHandlerTerminated(ActorId id, string stateName, DequeueStatus dequeueStatus) { if (dequeueStatus != DequeueStatus.Unavailable) { string text; if (stateName is null) { text = $"<ActorLog> The event handler of {id} terminated with '{dequeueStatus}' dequeue status."; } else { text = $"<ActorLog> The event handler of {id} terminated in state '{stateName}' with '{dequeueStatus}' dequeue status."; } this.Logger.WriteLine(text); } }
public void OnEventHandlerTerminated(ActorId id, string stateName, DequeueStatus dequeueStatus) { }