private void ProcessReport(EntranceRemainTempCardReport report) { EntranceInfo entrance = ParkBuffer.Current.GetEntrance(report.EntranceID); if (entrance != null) { entrance.TempCard = report.RemainTempCard; TreeNode node = GetEntranceNode(entrance.EntranceID); if (node != null) { RenderEntrance(node, entrance); } } }
private void ReportSink(EntranceRemainTempCardReport report) { List <IReportSinker> faultSinkers = new List <IReportSinker>(); foreach (IReportSinker reportSinker in _reportSinkers) { try { reportSinker.EntranceRemainTempCardSink(report); } catch (Exception ex) { faultSinkers.Add(reportSinker); ExceptionPolicy.HandleException(ex); } } if (faultSinkers.Count > 0) { RemoveFaultSinkers(faultSinkers); } }
private void park_EntranceRemainTempCardReporting(object sender, EntranceRemainTempCardReport report) { ReportEnqueue(report); }