コード例 #1
0
        /// <summary> Sends a notification </summary>
        /// <param name="request"> The input request </param>
        public SendNotificationResponse SendNotification(SendNotificationRequest request)
        {
            try
            {
                Guid lRequestId = Guid.Empty;

                if (request.RequestId != "")
                {
                    lRequestId = new Guid(request.RequestId);
                }

                MissionService.OnTrainNotification(
                    lRequestId,
                    request.NotificationId,
                    request.ElementId,
                    request.Parameter);
            }
            catch (System.Exception e)
            {
                LogManager.WriteLog(TraceType.EXCEPTION, e.Message, "PIS.Ground.Mission.Notification.NotificationGroundService.SendNotification", e, EventIdEnum.Mission);
            }

            return(new SendNotificationResponse());  //always empty response
        }