コード例 #1
0
 // Token: 0x06000E48 RID: 3656 RVA: 0x0005BA1D File Offset: 0x00059C1D
 internal static bool ShouldIgnoreRequest(OwaContext owaContext, UserContext userContext)
 {
     return(PendingRequestEventHandler.IsObsoleteRequest(owaContext, userContext));
 }
コード例 #2
0
        internal IAsyncResult BeginSendNotification(AsyncCallback callback, object extraData, bool isUserContextFullyInitialized, PendingRequestEventHandler pendingRequestHandler)
        {
            bool flag = this.lockTracker.SetPipeAvailable(false);

            ExTraceGlobals.NotificationsCallTracer.TraceDebug((long)this.GetHashCode(), "Setting the pipe to AVAILABLE");
            try
            {
                this.pendingRequestEventHandler = pendingRequestHandler;
                this.asyncResult = new OwaAsyncResult(callback, extraData);
                try
                {
                    this.response = (ChunkedHttpResponse)extraData;
                    this.response.WriteIsRequestAlive(true);
                    if (!isUserContextFullyInitialized)
                    {
                        this.response.WriteReInitializeOWA();
                    }
                    this.lastWriteTime         = DateTime.UtcNow.Ticks;
                    this.disposePendingRequest = false;
                }
                finally
                {
                    flag = !this.lockTracker.TryReleaseLock();
                }
                if (flag)
                {
                    this.WriteNotification(true);
                }
                this.startPendingRequestTime = DateTime.UtcNow.Ticks;
                this.lastDisconnectedTime    = 0L;
                if (this.pendingRequestAliveTimer == null)
                {
                    this.pendingRequestAliveTimer = new Timer(new TimerCallback(this.ElapsedConnectionAliveTimeout), null, 40000, 40000);
                }
            }
            catch (Exception e)
            {
                this.HandleException(e, true);
            }
            return(this.asyncResult);
        }