Ejemplo n.º 1
0
        private void HandleMessage(string content)
        {
            try
            {
                EmailNotificationModel emailObj = new EmailNotificationModel();
                emailObj = JsonConvert.DeserializeObject <EmailNotificationModel>(content);


                NotificationClass.SendEmail(emailObj);

                // Send Update to Log Service.
                ApplicationLogs applogs = new ApplicationLogs();
                applogs.LogMessage = emailObj.Emailfrom + "\t" + emailObj.Emailto + "\t" + emailObj.CC + "\t" + emailObj.Content;
                _queueProvider.RegisterApplicationLog(applogs);
            }
            catch
            { }
        }