Пример #1
0
 private void ReplayStatusInfoEvent(RequestStatusUpdated @event)
 {
     if (requestCache.ContainsKey(@event.RequestUid))
     {
         requestCache[@event.RequestUid] = @event;
     }
     else
     {
         requestCache.Add(@event.RequestUid, @event);
     }
 }
Пример #2
0
        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);
            });
        }