// This is called on the thread that called EngineRequestProcess.Enqueue.  
        HResult IBackgroundRequest.OnEnqueued(BackgroundRequestProcessor processor)
        {
            this.Processor = processor;
            this.responseDispatched = false;
            this.inProgress = false;

            HResult hr = this.OnEnqueued();

            if (hr.Failed)
            {
                this.DispatchResponse(hr);
            }

            return hr;
        }
Exemplo n.º 2
0
        // This is called on the thread that called EngineRequestProcess.Enqueue.
        HResult IBackgroundRequest.OnEnqueued(BackgroundRequestProcessor processor)
        {
            this.Processor          = processor;
            this.responseDispatched = false;
            this.inProgress         = false;

            HResult hr = this.OnEnqueued();

            if (hr.Failed)
            {
                this.DispatchResponse(hr);
            }

            return(hr);
        }