Exemplo n.º 1
0
        private void LogClientRequestInfo()
        {
            if (string.Compare(base.ClientRequest.RequestType, "POST", true) != 0)
            {
                return;
            }
            string clientRequestInfo = MapiHttpEndpoints.GetClientRequestInfo(base.HttpContext);

            base.ClientResponse.AppendToLog("&ClientRequestInfo=" + clientRequestInfo);
            base.Logger.Set(ActivityStandardMetadata.ClientRequestId, clientRequestInfo);
        }
Exemplo n.º 2
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.º 3
0
        internal RfriStatus GetMailboxUrl(string hostname, string serverDn, out string serverUrl)
        {
            serverUrl = string.Empty;
            string     text;
            RfriStatus rfriStatus = this.GetFQDNFromLegacyDN(serverDn, out text);

            if (rfriStatus == RfriStatus.Success)
            {
                if (text.Contains("@"))
                {
                    serverUrl = MapiHttpEndpoints.GetMailboxUrl(hostname, text);
                }
                else
                {
                    rfriStatus = RfriStatus.NoSuchObject;
                }
            }
            return(rfriStatus);
        }
Exemplo n.º 4
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);
        }