Esempio n. 1
0
        // Token: 0x060003B7 RID: 951 RVA: 0x00014DF0 File Offset: 0x00012FF0
        private static void WriteCompleteCallback(IAsyncResult asyncResult)
        {
            StreamProxy streamProxy = AsyncStateHolder.Unwrap <StreamProxy>(asyncResult);

            if (asyncResult.CompletedSynchronously)
            {
                ThreadPool.QueueUserWorkItem(new WaitCallback(streamProxy.OnWriteComplete), asyncResult);
                return;
            }
            streamProxy.OnWriteComplete(asyncResult);
        }
        // Token: 0x06000714 RID: 1812 RVA: 0x00029A40 File Offset: 0x00027C40
        private static void ValidateBackendServerCacheCallback(IAsyncResult result)
        {
            RpcHttpProxyRequestHandler rpcHttpProxyRequestHandler = AsyncStateHolder.Unwrap <RpcHttpProxyRequestHandler>(result);

            if (result.CompletedSynchronously)
            {
                ThreadPool.QueueUserWorkItem(new WaitCallback(rpcHttpProxyRequestHandler.OnValidateBackendServerCacheCompleted), result);
                return;
            }
            rpcHttpProxyRequestHandler.OnValidateBackendServerCacheCompleted(result);
        }
        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);
        }