private void ReplayStatusInfoEvent(RequestStatusUpdated @event) { if (requestCache.ContainsKey(@event.RequestUid)) { requestCache[@event.RequestUid] = @event; } else { requestCache.Add(@event.RequestUid, @event); } }
private void ReceiveRequestStatus(RequestStatusInfo message) { Console.WriteLine($"Status kua: ReportStatusActor.ReceiveRequestStatus: {message}"); var @event = new RequestStatusUpdated(message.RequestUid, message.RequestStatus, message.ReportId); Persist(@event, m => { Console.WriteLine("Status actor persisting"); ReplayStatusInfoEvent(m); }); }