public static void RegisterWindowsPhoneService(this PushBroker 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);
		}
		public static void RegisterWindowsPhoneService(this PushBroker broker, WindowsPhonePushChannelSettings channelSettings, IPushServiceSettings serviceSettings = null)
		{
			RegisterWindowsPhoneService (broker, channelSettings, null, serviceSettings);
		}
 public WindowsPhonePushChannel(WindowsPhonePushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
     : base(channelSettings, serviceSettings)
 {
     windowsPhoneSettings = channelSettings;
 }
 public WindowsPhonePushChannel(WindowsPhonePushChannelSettings channelSettings)
 {
     windowsPhoneSettings = channelSettings;
 }
Пример #5
0
 public WindowsPhonePushChannel(WindowsPhonePushChannelSettings channelSettings)
 {
     windowsPhoneSettings = channelSettings;
 }
Пример #6
0
 public WindowsPhonePushChannel(WindowsPhonePushChannelSettings settings)
     : base(settings)
 {
     windowsPhoneSettings = settings;
 }
Пример #7
0
 public WindowsPhonePushService(IPushChannelFactory pushChannelFactory, WindowsPhonePushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
     : base(pushChannelFactory ?? new WindowsPhonePushChannelFactory(), channelSettings ?? new WindowsPhonePushChannelSettings(), serviceSettings)
 {
 }
Пример #8
0
		public WindowsPhonePushService(WindowsPhonePushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
			: this(default(IPushChannelFactory), channelSettings, serviceSettings)
		{
		}
Пример #9
0
 public WindowsPhonePushService(WindowsPhonePushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
     : this(default(IPushChannelFactory), channelSettings, serviceSettings)
 {
 }
Пример #10
0
 public WindowsPhonePushService(
     WindowsPhonePushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
     : base(new WindowsPhoneChannelFactory(channelSettings), serviceSettings)
 {
 }
 public WindowsPhonePushChannel(WindowsPhonePushChannelSettings channelSettings, PushServiceSettings serviceSettings = null) : base(channelSettings, serviceSettings)
 {
     windowsPhoneSettings = channelSettings;
 }
Пример #12
0
 public void StartWindowsPhonePushService(WindowsPhone.WindowsPhonePushChannelSettings channelSettings = null, PushServiceSettings serviceSettings = null)
 {
     wpService = new WindowsPhone.WindowsPhonePushService(channelSettings, serviceSettings);
     wpService.Events.RegisterProxyHandler(this.Events);
 }
Пример #13
0
		public WindowsPhonePushService(IPushChannelFactory pushChannelFactory, WindowsPhonePushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
			: base(pushChannelFactory ?? new WindowsPhonePushChannelFactory(), channelSettings ?? new WindowsPhonePushChannelSettings(), serviceSettings)
		{
		}
Пример #14
0
		public WindowsPhonePushService(IPushChannelFactory pushChannelFactory, WindowsPhonePushChannelSettings channelSettings)
			: this(pushChannelFactory, channelSettings, default(IPushServiceSettings))
		{
		}
Пример #15
0
 public WindowsPhonePushService(IPushChannelFactory pushChannelFactory, WindowsPhonePushChannelSettings channelSettings)
     : this(pushChannelFactory, channelSettings, default(IPushServiceSettings))
 {
 }
 public MonoWindowsPhonePushChannel(WindowsPhonePushChannelSettings channelSettings)
 {
     windowsPhoneSettings = channelSettings;
     assemblyVerison      = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
     ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, errors) => true;
 }
 public WindowsPhoneChannelFactory(WindowsPhonePushChannelSettings channelSettings)
 {
     this.channelSettings = channelSettings;
 }