Пример #1
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();
 }
Пример #2
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();
 }