Пример #1
0
        public static MailboxUrls GetOwaMailboxUrls(IExchangePrincipal exchangePrincipal)
        {
            string smtpAddress = exchangePrincipal.MailboxInfo.PrimarySmtpAddress.ToString();
            string owaUrl      = MailboxUrls.GetOwaUrl(exchangePrincipal, true);

            return(new MailboxUrls(smtpAddress, owaUrl, null));
        }
Пример #2
0
        public MailboxUrls(IExchangePrincipal exchangePrincipal, bool failOnError = false)
        {
            string smtpAddress = exchangePrincipal.MailboxInfo.PrimarySmtpAddress.ToString();
            string owaUrl      = MailboxUrls.GetOwaUrl(exchangePrincipal, failOnError);
            string ewsUrl      = MailboxUrls.GetEwsUrl(exchangePrincipal, failOnError);

            this.InitializeUrls(smtpAddress, owaUrl, ewsUrl);
        }