Add OSX manager to example
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user