예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public static void RegisterChromeGcmService(this IPushBroker broker, ChromePushChannelSettings channelSettings, string applicationId = null, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <ChromeNotification>(new ChromePushService(channelSettings, serviceSettings), applicationId);
 }
예제 #4
0
 public static void RegisterC2dmService(this IPushBroker broker, C2dmPushChannelSettings channelSettings, string applicationId, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <C2dmNotification>(new C2dmPushService(channelSettings, serviceSettings), applicationId);
 }
예제 #5
0
 public static void RegisterAdmService(this IPushBroker broker, AdmPushChannelSettings channelSettings, string applicationId, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <AdmNotification>(new AdmPushService(new AdmPushChannelFactory(), channelSettings, serviceSettings));
 }
예제 #6
0
 /// <summary>
 /// Registers FirefoxOS service.
 /// </summary>
 ///
 /// <param name="broker">Registration broker.</param>
 public static void RegisterFirefoxOSService(this IPushBroker broker)
 {
     broker.RegisterService <FirefoxOSNotification>(new FirefoxOSPushService());
 }
예제 #7
0
 public static void RegisterBlackberryService(this IPushBroker broker, BlackberryPushChannelSettings channelSettings, string applicationId = null, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService <BlackberryNotification>(new BlackberryPushService(channelSettings, serviceSettings), applicationId);
 }