Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
        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);
            }
        }