public static MailboxUrls GetOwaMailboxUrls(IExchangePrincipal exchangePrincipal)
        {
            string smtpAddress = exchangePrincipal.MailboxInfo.PrimarySmtpAddress.ToString();
            string owaUrl      = MailboxUrls.GetOwaUrl(exchangePrincipal, true);

            return(new MailboxUrls(smtpAddress, owaUrl, null));
        }
        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);
        }