コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        // 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"
            );
        }
コード例 #4
0
		public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
			: base(pushChannelFactory ?? new WindowsPushChannelFactory(), channelSettings, serviceSettings)
		{ }
コード例 #5
0
		public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings)
			: this(pushChannelFactory, channelSettings, default(IPushServiceSettings))
		{
		}
コード例 #6
0
		public WindowsPushService(WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
			: this(default(IPushChannelFactory), channelSettings, serviceSettings)
		{
		}
コード例 #7
0
 public WindowsPushChannelFactory(WindowsPushChannelSettings channelSettings)
 {
     this.channelSettings = channelSettings;
 }
コード例 #8
0
		public static void RegisterWindowsService(this IPushBroker broker, WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings = null)
		{
			RegisterWindowsService (broker, channelSettings, null, serviceSettings);
		}
コード例 #9
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings)
 {
     this.channelSettings = channelSettings;
 }
コード例 #10
0
ファイル: PushService.cs プロジェクト: apps4u/PushSharp
 public void StartWindowsPushService(Windows.WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
 {
     winService = new Windows.WindowsPushService(channelSettings, serviceSettings);
     winService.Events.RegisterProxyHandler(this.Events);
 }
コード例 #11
0
 public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
     : base(pushChannelFactory ?? new WindowsPushChannelFactory(), channelSettings, serviceSettings)
 {
 }
コード例 #12
0
 public WindowsPushService(IPushChannelFactory pushChannelFactory, WindowsPushChannelSettings channelSettings)
     : this(pushChannelFactory, channelSettings, default(IPushServiceSettings))
 {
 }
コード例 #13
0
 public WindowsPushService(WindowsPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
     : this(default(IPushChannelFactory), channelSettings, serviceSettings)
 {
 }
コード例 #14
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null) : base(channelSettings, serviceSettings)
 {
     this.channelSettings = channelSettings;
 }
コード例 #15
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings) : this(channelSettings, null)
 {
 }
コード例 #16
0
 public WindowsPushChannel(WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings = null)
     : base(channelSettings, serviceSettings)
 {
     this.channelSettings = channelSettings;
 }
コード例 #17
0
 public WindowsPushService(
     WindowsPushChannelSettings channelSettings, PushServiceSettings serviceSettings)
     : base(new WindowsPushChannelFactory(channelSettings), serviceSettings)
 {
 }