コード例 #1
0
        protected override bool IsValidExplicitLogonNode(string node, bool nodeIsLast)
        {
            string text = string.Format("IsValidExplicitLogonNode: {0} last:{1} ", node, nodeIsLast ? "y" : "n");
            bool   result;

            if (string.IsNullOrEmpty(node))
            {
                text  += "1-F";
                result = false;
            }
            else if (!node.Contains("@") && !node.Contains("."))
            {
                text  += "2-F";
                result = false;
            }
            else if (nodeIsLast && OwaEcpProxyRequestHandler <HttpService> .IsServerPageRequest(node))
            {
                ExTraceGlobals.VerboseTracer.TraceDebug <int, string>((long)this.GetHashCode(), "[OwaEcpProxyRequestHandler::IsValidExplicitLogonNode]: Context {0}; rejected explicit logon node: {1}", base.TraceContext, node);
                text  += "3-F";
                result = false;
            }
            else
            {
                text  += "4-T";
                result = true;
            }
            ExTraceGlobals.VerboseTracer.TraceDebug((long)this.GetHashCode(), text);
            return(result);
        }
コード例 #2
0
        private static void ProxyLogonResponseReadyCallback(IAsyncResult result)
        {
            OwaEcpProxyRequestHandler <ServiceType> owaEcpProxyRequestHandler = AsyncStateHolder.Unwrap <OwaEcpProxyRequestHandler <ServiceType> >(result);

            ExTraceGlobals.VerboseTracer.TraceDebug <int>((long)owaEcpProxyRequestHandler.GetHashCode(), "[OwaEcpProxyRequestHandler::ProxyLogonResponseReadyCallback]: Context {0}", owaEcpProxyRequestHandler.TraceContext);
            if (result.CompletedSynchronously)
            {
                ThreadPool.QueueUserWorkItem(new WaitCallback(owaEcpProxyRequestHandler.OnProxyLogonResponseReady), result);
                return;
            }
            owaEcpProxyRequestHandler.OnProxyLogonResponseReady(result);
        }