Exemplo n.º 1
0
        internal RfriStatus GetAddressBookUrl(string hostname, string userDn, out string serverUrl)
        {
            serverUrl = string.Empty;
            RfriStatus result = RfriStatus.NoSuchObject;
            string     mailboxId;

            if (this.TryGetPersonalizedServer(userDn, out mailboxId))
            {
                serverUrl = MapiHttpEndpoints.GetAddressBookUrl(hostname, mailboxId);
                result    = RfriStatus.Success;
            }
            return(result);
        }
Exemplo n.º 2
0
        // Token: 0x06000182 RID: 386 RVA: 0x00008390 File Offset: 0x00006590
        public bool TryGetProtocolUrl(ClientAccessType clientAccessType, MapiHttpProtocolUrls.Protocol mapiHttpProtocol, out Uri protocolUrl)
        {
            Uri uri = (clientAccessType == ClientAccessType.Internal) ? this.InternalBaseUrl : this.ExternalBaseUrl;

            if (uri != null)
            {
                if (mapiHttpProtocol == MapiHttpProtocolUrls.Protocol.Emsmdb)
                {
                    protocolUrl = new Uri(MapiHttpEndpoints.GetMailboxUrl(uri.Host, this.MailboxId));
                    return(true);
                }
                if (mapiHttpProtocol == MapiHttpProtocolUrls.Protocol.Nspi)
                {
                    protocolUrl = new Uri(MapiHttpEndpoints.GetAddressBookUrl(uri.Host, this.MailboxId));
                    return(true);
                }
            }
            protocolUrl = null;
            return(false);
        }