Example #1
0
        public static void RegisterWindowsService(this PushBroker broker, WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
        {
            var service = new WindowsPushService(new WindowsPushChannelFactory(), channelSettings, serviceSettings);

            broker.RegisterService <WindowsRawNotification>(service);
            broker.RegisterService <WindowsTileNotification>(service);
            broker.RegisterService <WindowsToastNotification>(service);
            broker.RegisterService <WindowsBadgeNumericNotification>(service);
            broker.RegisterService <WindowsBadgeGlyphNotification>(service);
        }
        public static void RegisterWindowsPhoneService(this PushBroker broker, WindowsPhonePushChannelSettings channelSettings, string applicationId, IPushServiceSettings serviceSettings = null)
        {
            var service = new WindowsPhonePushService(new WindowsPhonePushChannelFactory(), channelSettings, serviceSettings);

            broker.RegisterService <WindowsPhoneCycleTileNotification>(service, applicationId);
            broker.RegisterService <WindowsPhoneFlipTileNotification>(service, applicationId);
            broker.RegisterService <WindowsPhoneIconicTileNotification>(service, applicationId);
            broker.RegisterService <WindowsPhoneTileNotification>(service, applicationId);
            broker.RegisterService <WindowsPhoneToastNotification>(service, applicationId);
            broker.RegisterService <WindowsPhoneRawNotification>(service, applicationId);
        }
Example #3
0
 public static void RegisterBlackberryService(this PushBroker broker, BlackberryPushChannelSettings channelSettings, string applicationId = null, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <BlackberryNotification>(new BlackberryPushService(channelSettings, serviceSettings), applicationId);
 }
Example #4
0
 public static void RegisterAppleService(this PushBroker broker, ApplePushChannelSettings channelSettings, string applicationId, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <AppleNotification>(new ApplePushService(channelSettings, serviceSettings), applicationId);
 }
 /// <summary>
 /// Registers FirefoxOS service.
 /// </summary>
 ///
 /// <param name="broker">Registration broker.</param>
 public static void RegisterFirefoxOSService(this PushBroker broker)
 {
     broker.RegisterService <FirefoxOSNotification>(new FirefoxOSPushService());
 }
Example #6
0
 public static void RegisterAdmService(this PushBroker broker, AdmPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <AdmNotification>(new AdmPushService(new AdmPushChannelFactory(), channelSettings, serviceSettings));
 }
 public static void RegisterGcmService(this PushBroker broker, GcmPushChannelSettings channelSettings, string applicationId, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <GcmNotification>(new GcmPushService(new GcmPushChannelFactory(), channelSettings, serviceSettings), applicationId);
 }
 public static void RegisterChromeGcmService(this PushBroker broker, ChromePushChannelSettings channelSettings, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <ChromeNotification>(new ChromePushService(channelSettings, serviceSettings));
 }
Example #9
0
 public static void RegisterBISService(this PushBroker broker, BISPushChannelSettings channelSettings, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <BISNotification>(new BISPushService(channelSettings, serviceSettings));
 }