ChatterBox.Client.Common.Notifications.ToastNotificationService.ShowToastNotification C# (CSharp) Method

ShowToastNotification() public static method

public static ShowToastNotification ( string message ) : void
message string
return void
        public static void ShowToastNotification(string message)
        {
            var toastXml = ToastNotificationManager.GetTemplateContent(ToastTemplateType.ToastText02);
            var textNodes = toastXml.GetElementsByTagName("text");
            textNodes.First().AppendChild(toastXml.CreateTextNode(message));

            ShowNotification(toastXml);
        }
    }