/// <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(); }
/// <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(); }
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; }
/// <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(); }