public static async Task <Result <ToastNotificationVisibility> > ShowPendingRebootToastNotification(Some <NotificationProfile> notificationProfile, PendingRebootInfo info, string tag, string groupName) { return(await ToastHelper.ShowToastNotification(async() => { var toastContentInfo = GetCheckPendingRebootToastContentInfo(notificationProfile, info, groupName); var toastContent = await ActionDismissToastContent.CreateToastContent(toastContentInfo).ConfigureAwait(true); return toastContent; }, tag, groupName).ConfigureAwait(false)); }
public static async Task <Result <ToastNotificationVisibility> > ShowMissingUpdatesToastNotification(Some <NotificationProfile> userProfile, string tag, string groupName, MissingMsUpdatesInfo info) { return(await ToastHelper.ShowToastNotification(async() => { var toastContentInfo = GetCheckMissingMsUpdatesToastContentInfo(userProfile, groupName, info); var toastContent = await ActionDismissToastContent.CreateToastContent(toastContentInfo).ConfigureAwait(true); return toastContent; }, tag, groupName).ConfigureAwait(false)); }
public static async Task <Result <ToastNotificationVisibility> > ShowDiskSpaceToastNotification(Some <NotificationProfile> userProfile, decimal requiredCleanupAmount, string tag, string groupName) { return(await ToastHelper.ShowToastNotification(async() => { var toastContentInfo = GetCheckDiskSpaceToastContentInfo(userProfile, requiredCleanupAmount, groupName); var toastContent = await ActionDismissToastContent.CreateToastContent(toastContentInfo).ConfigureAwait(true); return toastContent; }, tag, groupName).ConfigureAwait(false)); }
public static async Task <Result <ToastNotificationVisibility> > ShowPasswordExpiryToastNotification(Some <NotificationProfile> userProfile, DateTime passwordExpirationDate, string tag, string groupName) { return(await ToastHelper.ShowToastNotification(async() => { var toastContentInfo = GetCheckPasswordExpiryToastContentInfo(userProfile, passwordExpirationDate, groupName); var toastContent = await ActionDismissToastContent.CreateToastContent(toastContentInfo).ConfigureAwait(true); return toastContent; }, tag, groupName).ConfigureAwait(false)); }