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