public FeedbackService(bool useSandbox, X509Certificate2 certificate) { this.useSandbox = useSandbox; this.certificate = certificate; if (this.useSandbox) { this.connection = new SandboxFeedbackConnection(this.certificate); } else { this.connection = new GatewayFeedbackConnection(this.certificate); } }
public APNS(bool useSandbox, X509Certificate2 certificate) { this.useSandbox = useSandbox; this.certificate = certificate; if (this.useSandbox) { this.connection = new SandboxGatewayConnection(this.certificate); } else { this.connection = new GatewayConnection(this.certificate); } }