/// <summary>
        /// Instantiate MessageReceived Client with User Provided Certificate and Password.
        /// </summary>
        private static messageReceivedClient getMessagesClient(X509Certificate2 certificate)
        {
            var client = new messageReceivedClient();
            client.ClientCredentials.ClientCertificate.Certificate = certificate;

            return client;
        }
Esempio n. 2
0
        /// <summary>
        /// Instantiate MessageReceived Client with User Provided Certificate and Password.
        /// </summary>
        private static messageReceivedClient getMessagesClient(X509Certificate2 certificate)
        {
            var client = new messageReceivedClient();

            client.ClientCredentials.ClientCertificate.Certificate = certificate;

            return(client);
        }