raflop/ToastNotifications

View on GitHub
Src/ToastNotifications.Messages/WarningExtensions.cs

Summary

Maintainability
A
0 mins
Test Coverage
using ToastNotifications.Core;
using ToastNotifications.Messages.Core;
using ToastNotifications.Messages.Warning;

namespace ToastNotifications.Messages
{
    public static class WarningExtensions
    {
        public static void ShowWarning(this Notifier notifier, string message)
        {
            notifier.Notify<WarningMessage>(() => new WarningMessage(message));
        }

        public static void ShowWarning(this Notifier notifier, string message, MessageOptions displayOptions)
        {
            notifier.Notify<WarningMessage>(() => new WarningMessage(message, displayOptions));
        }
    }
}