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"
            );
        }
		public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
			: base(pushChannelFactory ?? new WindowsPushChannelFactory(), channelSettings, serviceSettings)
		{ }
		public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings)
			: this(pushChannelFactory, channelSettings, default(IPushServiceSettings))
		{
		}
		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);
		}
Exemple #9
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings)
 {
     this.channelSettings = channelSettings;
 }
Exemple #10
0
 public void StartWindowsPushService(Windows.WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
 {
     winService = new Windows.WindowsPushService(channelSettings, serviceSettings);
     winService.Events.RegisterProxyHandler(this.Events);
 }
Exemple #11
0
 public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
     : base(pushChannelFactory ?? new WindowsPushChannelFactory(), channelSettings, serviceSettings)
 {
 }
Exemple #12
0
 public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings)
     : this(pushChannelFactory, channelSettings, default(IPushServiceSettings))
 {
 }
Exemple #13
0
 public WindowsPushService(WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
     : this(default(IPushChannelFactory), channelSettings, serviceSettings)
 {
 }
Exemple #14
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null) : base(channelSettings, serviceSettings)
 {
     this.channelSettings = channelSettings;
 }
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings) : this(channelSettings, null)
 {
 }
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
     : base(channelSettings, serviceSettings)
 {
     this.channelSettings = channelSettings;
 }
 public WindowsPushService(
     WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings)
     : base(new WindowsPushChannelFactory(channelSettings), serviceSettings)
 {
 }