Exemplo 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);
 }
Exemplo n.º 4
0
		public ChromePushService(ChromePushChannelSettings channelSettings)
			: this(default(IPushChannelFactory), channelSettings, default(IPushServiceSettings))
		{
		}
Exemplo n.º 5
0
		public ChromePushService(IPushChannelFactory pushChannelFactory, ChromePushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
			: base(pushChannelFactory ?? new GcmPushChannelFactory(), channelSettings, serviceSettings)
		{
		}
Exemplo n.º 6
0
 public ChromePushChannel(ChromePushChannelSettings channelSettings)
 {
     Expires        = DateTime.UtcNow.AddYears(-1);
     AccessToken    = string.Empty;
     chromeSettings = channelSettings as ChromePushChannelSettings;
 }