コード例 #1
0
        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);
                }
            }
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 private void park_EntranceRemainTempCardReporting(object sender, EntranceRemainTempCardReport report)
 {
     ReportEnqueue(report);
 }