public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is GcmPushChannelSettings)) throw new ArgumentException("channelSettings must be of type " + typeof(GcmPushChannelSettings).Name); return new GcmPushChannel(channelSettings as GcmPushChannelSettings); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is WindowsPushChannelSettings)) throw new ArgumentException("channelSettings must be of type WindowsPushChannelSettings"); return new WindowsPushChannel(channelSettings as WindowsPushChannelSettings); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is ApplePushChannelSettings)) throw new ArgumentException("Channel Settings must be of type ApplePushChannelSettings"); return new ApplePushChannel(channelSettings as ApplePushChannelSettings); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is BlackberryPushChannelSettings)) throw new ArgumentException("channelSettings must be of type: " + typeof(BlackberryPushChannelSettings).Name); return new BlackberryPushChannel(channelSettings as BlackberryPushChannelSettings); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is FacebookPushChannelSettings)) throw new ArgumentException("channelSettings must be of type FacebookPushChannelSettings"); return new FacebookPushChannel(channelSettings as FacebookPushChannelSettings); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is ChromePushChannelSettings)) throw new ArgumentException("channelSettings must be of type " + typeof(ChromePushChannelSettings).ToString()); return new ChromePushChannel(channelSettings as ChromePushChannelSettings); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is ApplePushChannelSettings)) { throw new ArgumentException("Channel Settings must be of type ApplePushChannelSettings"); } return((IPushChannel) new ApplePushChannel(channelSettings as ApplePushChannelSettings)); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is BlackberryPushChannelSettings)) { throw new ArgumentException("channelSettings must be of type: " + typeof(BlackberryPushChannelSettings).Name); } return(new BlackberryPushChannel(channelSettings as BlackberryPushChannelSettings)); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is ChromePushChannelSettings)) { throw new ArgumentException("channelSettings must be of type " + typeof(ChromePushChannelSettings).ToString()); } return(new ChromePushChannel(channelSettings as ChromePushChannelSettings)); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is BISPushChannelSettings)) { throw new ArgumentException("channelSettings must be of type BISPushChannelSettings"); } return(new BISPushChannel(channelSettings as BISPushChannelSettings)); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is GcmPushChannelSettings)) { throw new ArgumentException("channelSettings must be of type " + typeof(GcmPushChannelSettings).Name); } return(new GcmPushChannel(channelSettings as GcmPushChannelSettings)); }
public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { if (!(channelSettings is WindowsPhonePushChannelSettings)) { throw new ArgumentException("channelSettings must be of type WindowsPhonePushChannelSettings"); } return(new WindowsPhonePushChannel(channelSettings as WindowsPhonePushChannelSettings)); }
protected PushServiceBase(IPushChannelFactory pushChannelFactory, IPushChannelSettings channelSettings, IPushServiceSettings serviceSettings) { this.PushChannelFactory = pushChannelFactory; this.ServiceSettings = serviceSettings ?? (IPushServiceSettings) new PushServiceSettings(); this.ChannelSettings = channelSettings; this.queuedNotifications = new NotificationQueue(); this.scaleSync = 0; this.timerCheckScale = new Timer(new TimerCallback(this.CheckScale), (object)null, TimeSpan.FromSeconds(5.0), TimeSpan.FromSeconds(5.0)); this.CheckScale((object)null); this.stopping = false; }
protected PushServiceBase(IPushChannelFactory pushChannelFactory, IPushChannelSettings channelSettings, IPushServiceSettings serviceSettings) { this.PushChannelFactory = pushChannelFactory; this.ServiceSettings = serviceSettings ?? new PushServiceSettings(); this.ChannelSettings = channelSettings; this.queuedNotifications = new ConcurrentQueue<INotification>(); timerCheckScale = new Timer(CheckScale, null, TimeSpan.FromSeconds(15), TimeSpan.FromSeconds(15)); CheckScale(); stopping = false; }
protected PushServiceBase(IPushChannelFactory pushChannelFactory, IPushChannelSettings channelSettings, IPushServiceSettings serviceSettings) { this.PushChannelFactory = pushChannelFactory; this.ServiceSettings = serviceSettings ?? new PushServiceSettings(); this.ChannelSettings = channelSettings; this.queuedNotifications = new ConcurrentQueue <INotification>(); timerCheckScale = new Timer(CheckScale, null, TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(5)); CheckScale(); stopping = false; }
protected PushServiceBase(IPushChannelFactory pushChannelFactory, IPushChannelSettings channelSettings) : this(pushChannelFactory, channelSettings, default(IPushServiceSettings)) { }
/// <summary> /// Creates a FirefoxOS push channel. /// </summary> /// <param name="channelSettings"></param> /// <returns></returns> public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { return(new FirefoxOSPushChannel()); }
/// <summary> /// Creates a FirefoxOS push channel. /// </summary> /// <param name="channelSettings"></param> /// <returns></returns> public IPushChannel CreateChannel(IPushChannelSettings channelSettings) { return new FirefoxOSPushChannel(); }
protected PushServiceBase(IPushChannelFactory pushChannelFactory, IPushChannelSettings channelSettings) : this(pushChannelFactory, channelSettings, (IPushServiceSettings)null) { }