Add OSX manager to example

This commit is contained in:
Luis von der Eltz
2021-02-06 15:37:46 +01:00
parent d938746b4a
commit 2feff33623
3 changed files with 14 additions and 1 deletions
+6
View File
@@ -2,6 +2,7 @@
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using DesktopNotifications;
using DesktopNotifications.Apple;
using DesktopNotifications.FreeDesktop;
using DesktopNotifications.Windows;
@@ -25,6 +26,11 @@ namespace Example
return new WindowsNotificationManager();
}
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
return new AppleNotificationManager();
}
throw new PlatformNotSupportedException();
}