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

            return client;
        }
Exemple #2
0
        /// <summary>
        /// Instantiate Messages Client with User Provided Certificate and Password.
        /// </summary>
        private static messageAttachmentClient getAttachmentClient(X509Certificate2 certificate)
        {
            var client = new messageAttachmentClient();

            client.ClientCredentials.ClientCertificate.Certificate = certificate;

            return(client);
        }