Beispiel #1
0
        public void Notify(NotificationData data)
        {
            var notificationData = data as WorkflowNotificationData;

            if (notificationData == null)
            {
                return;
            }

            var userName = notificationData.User.Title;
            var message  = string.Format(Resources.NotificationMessage, notificationData.WorkItems.Length);

            SendMessage(userName, message);
        }
Beispiel #2
0
        public void Notify(NotificationData data)
        {
            var applicationData = XElement.Parse(data.ApplicationData);

            if (!NotifierTypeIsSupported(applicationData))
            {
                return;
            }
            var workflowData = data as WorkflowNotificationData;

            if (workflowData != null)
            {
                Notify(workflowData.User, workflowData.WorkItems, applicationData);
            }
        }