Пример #1
0
        /// <summary>
        /// Parse the notification
        /// </summary>
        /// <param name="headers">POST request headers</param>
        /// <param name="json">POST body content</param>
        private void Convert(NameValueCollection headers, string json)
        {
            NotificationsParser client       = new NotificationsParser();
            INotification       notification = client.ParseRawMessage(headers, json);
            string notificationStr           = ConvertNotificationToString(notification);

            WriteLog(notificationStr);
            PlaceNotificationInApplicationCache(notification, notificationStr);
        }
 /// <summary>
 /// Parse the notification
 /// </summary>
 /// <param name="headers">POST request headers</param>
 /// <param name="json">POST body content</param>
 private void Convert(NameValueCollection headers, string json)
 {
     NotificationsParser client = new NotificationsParser();
     INotification notification = client.ParseRawMessage(headers, json);
     string notificationStr = ConvertNotificationToString(notification);
     WriteLog(notificationStr);
     PlaceNotificationInApplicationCache(notification, notificationStr);
 }