Esempio n. 1
0
 public ChromePushChannel(ChromePushChannelSettings channelSettings)
 {
     Expires = DateTime.UtcNow.AddYears(-1);
     AccessToken = string.Empty;
     chromeSettings = channelSettings as ChromePushChannelSettings;
 }
		public static void RegisterChromeGcmService(this PushBroker broker, ChromePushChannelSettings channelSettings, IPushServiceSettings serviceSettings = null)
		{
			RegisterChromeGcmService (broker, channelSettings, null, serviceSettings);
		}
 public static void RegisterChromeGcmService(this PushBroker broker, ChromePushChannelSettings channelSettings, string applicationId = null, IPushServiceSettings serviceSettings = null)
 {
     broker.RegisterService<ChromeNotification>(new ChromePushService(channelSettings, serviceSettings), applicationId);
 }
Esempio n. 4
0
		public ChromePushService(ChromePushChannelSettings channelSettings)
			: this(default(IPushChannelFactory), channelSettings, default(IPushServiceSettings))
		{
		}
Esempio n. 5
0
		public ChromePushService(IPushChannelFactory pushChannelFactory, ChromePushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
			: base(pushChannelFactory ?? new GcmPushChannelFactory(), channelSettings, serviceSettings)
		{
		}
Esempio n. 6
0
 public ChromePushChannel(ChromePushChannelSettings channelSettings)
 {
     Expires        = DateTime.UtcNow.AddYears(-1);
     AccessToken    = string.Empty;
     chromeSettings = channelSettings as ChromePushChannelSettings;
 }