Пример #1
0
        /// <summary>
        /// Adds notification to WS
        /// </summary>
        private async void AddNotification(NotificationDTO notification)
        {
            try
            {
                NotifyClient client = new NotifyClient();
                ResultDTO    r      = await client.AddNotificationAsync(notification, _hash);

                await client.CloseAsync();
            }
            catch (Exception ex)
            {
                new KrisLogger(null, null).ErrorToFile(
                    string.Format("[AddNotification] ERROR podczas zapisu notificationa, Msg = '{0}' | StackTrace = '{1}'",
                                  ex.Message, ex.StackTrace));
            }
        }