예제 #1
0
        /// <summary>
		/// Constructor
		/// </summary>
		/// <param name="host">Push Notification Gateway Host</param>
		/// <param name="port">Push Notification Gateway Port</param>
		/// <param name="p12File">PKCS12 .p12 or .pfx File containing Public and Private Keys</param>
		/// <param name="p12FilePassword">Password protecting the p12File</param>
		public NotificationConnection(string host, int port, string p12File, string p12FilePassword)
		{
			apnsChannel = new NotificationChannel(host, port, p12File, p12FilePassword);
			start();
		}
예제 #2
0
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="sandbox">Boolean flag indicating whether the default Sandbox or Production Host and Port should be used</param>
		/// <param name="p12File">PKCS12 .p12 or .pfx File containing Public and Private Keys</param>
		/// <param name="p12FilePassword">Password protecting the p12File</param>
		public NotificationConnection(bool sandbox, string p12File, string p12FilePassword)
		{
			apnsChannel = new NotificationChannel(sandbox, p12File, p12FilePassword);
			start();
		}
예제 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="sandbox">Boolean flag indicating whether the default Sandbox or Production Host and Port should be used</param>
 /// <param name="p12File">PKCS12 .p12 or .pfx File containing Public and Private Keys</param>
 /// <param name="p12FilePassword">Password protecting the p12File</param>
 public NotificationConnection(bool sandbox, string p12File, string p12FilePassword)
 {
     apnsChannel = new NotificationChannel(sandbox, p12File, p12FilePassword);
     start();
 }
예제 #4
0
 internal NotificationBatch(NotificationChannel channel, Notification[] notifications)
 {
     this.channel = channel;
     this.notifications = notifications;
     this.errors = new List<NotificationDeliveryError>();
     this.readBuffer = new byte[6];
     this.current = 0;
 }
예제 #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="sandbox">Boolean flag indicating whether the default Sandbox or Production Host and Port should be used</param>
 /// <param name="cert">X509 Certificate containing Public and Private Keys</param>
 public NotificationConnection(bool sandbox, X509Certificate2 cert)
 {
     apnsChannel = new NotificationChannel(sandbox, cert);
     start();
 }
예제 #6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="host">Push Notification Gateway Host</param>
 /// <param name="port">Push Notification Gateway Port</param>
 /// <param name="p12File">PKCS12 .p12 or .pfx File containing Public and Private Keys</param>
 /// <param name="p12FilePassword">Password protecting the p12File</param>
 public NotificationConnection(string host, int port, string p12File, string p12FilePassword)
 {
     apnsChannel = new NotificationChannel(host, port, p12File, p12FilePassword);
     start();
 }
예제 #7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="host">Push Notification Gateway Host</param>
 /// <param name="port">Push Notification Gateway Port</param>
 /// <param name="cert">X509 Certificate containing Public and Private Keys</param>
 public NotificationConnection(string host, int port, X509Certificate2 cert)
 {
     apnsChannel = new NotificationChannel(host, port, cert);
     start();
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="sandbox">Boolean flag indicating whether the default Sandbox or Production Host and Port should be used</param>
 /// <param name="cert">X509 Certificate containing Public and Private Keys</param>
 public NotificationConnection(bool sandbox, X509Certificate2 cert)
 {
     apnsChannel = new NotificationChannel(sandbox, cert);
     start();
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="host">Push Notification Gateway Host</param>
 /// <param name="port">Push Notification Gateway Port</param>
 /// <param name="cert">X509 Certificate containing Public and Private Keys</param>
 public NotificationConnection(string host, int port, X509Certificate2 cert)
 {
     apnsChannel = new NotificationChannel(host, port, cert);
     start();
 }