public static void RegisterWindowsService(this PushBroker broker, WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
        {
            var service = new WindowsPushService(new WindowsPushChannelFactory(), channelSettings, serviceSettings);

            broker.RegisterService<WindowsRawNotification>(service);
            broker.RegisterService<WindowsTileNotification>(service);
            broker.RegisterService<WindowsToastNotification>(service);
            broker.RegisterService<WindowsBadgeNumericNotification>(service);
            broker.RegisterService<WindowsBadgeGlyphNotification>(service);
        }
        public WindowsPushChannel(WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings)
            : base(channelSettings, serviceSettings)
        {
            windowsSettings = channelSettings;

            transport = new WindowsMessageTransportAsync();

            transport.MessageResponseReceived += new Action <WindowsNotificationStatus>(transport_MessageResponseReceived);

            transport.UnhandledException += new Action <WindowsNotification, Exception>(transport_UnhandledException);
        }
        // Constructor
        public PushNotificationProcessor(string appStartupPath = "")
        {
            // REQUIRED PLATFORM AUTHORIZATION TOKENS, a specific procedure for each platform, yeah, boring, I know...
            // register for those at: https://developer.apple.com/ and https://console.developers.google.com/ and https://dev.windows.com/en-us

            _googlePushNotificationAuthToken = "ENTER SERVER KEY";
            _applePushNotificationCertificate = new byte[] { }; //File.ReadAllBytes("/Certificates/Apple-PushNotifications-DevCert.p12");
            _windowsPushNotificationChannelSettings = new WindowsPushChannelSettings
            (
                "DevUG PushSharp",
                "ENTER CHANNEL KEY",
                "ENTER SECRET"
            );
        }
Esempio n. 4
0
		public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
			: base(pushChannelFactory ?? new WindowsPushChannelFactory(), channelSettings, serviceSettings)
		{ }
Esempio n. 5
0
		public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings)
			: this(pushChannelFactory, channelSettings, default(IPushServiceSettings))
		{
		}
Esempio n. 6
0
		public WindowsPushService(WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
			: this(default(IPushChannelFactory), channelSettings, serviceSettings)
		{
		}
 public WindowsPushChannelFactory(WindowsPushChannelSettings channelSettings)
 {
     this.channelSettings = channelSettings;
 }
		public static void RegisterWindowsService(this IPushBroker broker, WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings = null)
		{
			RegisterWindowsService (broker, channelSettings, null, serviceSettings);
		}
Esempio n. 9
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings)
 {
     this.channelSettings = channelSettings;
 }
Esempio n. 10
0
 public void StartWindowsPushService(Windows.WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
 {
     winService = new Windows.WindowsPushService(channelSettings, serviceSettings);
     winService.Events.RegisterProxyHandler(this.Events);
 }
Esempio n. 11
0
 public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
     : base(pushChannelFactory ?? new WindowsPushChannelFactory(), channelSettings, serviceSettings)
 {
 }
Esempio n. 12
0
 public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings)
     : this(pushChannelFactory, channelSettings, default(IPushServiceSettings))
 {
 }
Esempio n. 13
0
 public WindowsPushService(WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
     : this(default(IPushChannelFactory), channelSettings, serviceSettings)
 {
 }
Esempio n. 14
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null) : base(channelSettings, serviceSettings)
 {
     this.channelSettings = channelSettings;
 }
Esempio n. 15
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings) : this(channelSettings, null)
 {
 }
Esempio n. 16
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
     : base(channelSettings, serviceSettings)
 {
     this.channelSettings = channelSettings;
 }
Esempio n. 17
0
 public WindowsPushService(
     WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings)
     : base(new WindowsPushChannelFactory(channelSettings), serviceSettings)
 {
 }