public static void RegisterWindowsService(this IPushBroker broker, WindowsPushChannelSettings channelSettings, string applicationId, IPushServiceSettings serviceSettings = null) { var service = new WindowsPushService(new WindowsPushChannelFactory(), channelSettings, serviceSettings); broker.RegisterService <WindowsRawNotification>(service, applicationId); broker.RegisterService <WindowsTileNotification>(service, applicationId); broker.RegisterService <WindowsToastNotification>(service, applicationId); broker.RegisterService <WindowsBadgeNumericNotification>(service, applicationId); broker.RegisterService <WindowsBadgeGlyphNotification>(service, applicationId); }
public static void RegisterWindowsPhoneService(this IPushBroker 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); }
public static void RegisterChromeGcmService(this IPushBroker broker, ChromePushChannelSettings channelSettings, string applicationId = null, IPushServiceSettings serviceSettings = null) { broker.RegisterService <ChromeNotification>(new ChromePushService(channelSettings, serviceSettings), applicationId); }
public static void RegisterC2dmService(this IPushBroker broker, C2dmPushChannelSettings channelSettings, string applicationId, IPushServiceSettings serviceSettings = null) { broker.RegisterService <C2dmNotification>(new C2dmPushService(channelSettings, serviceSettings), applicationId); }
public static void RegisterAdmService(this IPushBroker broker, AdmPushChannelSettings channelSettings, string applicationId, IPushServiceSettings serviceSettings = null) { broker.RegisterService <AdmNotification>(new AdmPushService(new AdmPushChannelFactory(), channelSettings, serviceSettings)); }
/// <summary> /// Registers FirefoxOS service. /// </summary> /// /// <param name="broker">Registration broker.</param> public static void RegisterFirefoxOSService(this IPushBroker broker) { broker.RegisterService <FirefoxOSNotification>(new FirefoxOSPushService()); }
public static void RegisterBlackberryService(this IPushBroker broker, BlackberryPushChannelSettings channelSettings, string applicationId = null, IPushServiceSettings serviceSettings = null) { broker.RegisterService <BlackberryNotification>(new BlackberryPushService(channelSettings, serviceSettings), applicationId); }