Beispiel #1
0
        // make an async request to the scheduler that handles requests for the given target
        internal void AddAsyncRequest(DependencyObject target, AsyncDataRequest request)
        {
            if (target == null)
            {
                return;
            }

            // get the appropriate scheduler
            IAsyncDataDispatcher asyncDispatcher = AsyncDataDispatcher;

            /* AsyncDataDispatcher property is cut (task 41079)
             * IAsyncDataDispatcher asyncDispatcher = Binding.GetAsyncDataDispatcher(target);
             * if (asyncDispatcher == null)
             * {
             *  asyncDispatcher = AsyncDataDispatcher;
             * }
             */

            // add it to the list of schedulers that need cleanup
            if (_asyncDispatchers == null)
            {
                _asyncDispatchers = new HybridDictionary(1); // lazy instantiation
            }
            _asyncDispatchers[asyncDispatcher] = null;       // the value is unused

            // make the request
            asyncDispatcher.AddRequest(request);
        }
Beispiel #2
0
        // Token: 0x060074B7 RID: 29879 RVA: 0x00216334 File Offset: 0x00214534
        internal void AddAsyncRequest(DependencyObject target, AsyncDataRequest request)
        {
            if (target == null)
            {
                return;
            }
            IAsyncDataDispatcher asyncDataDispatcher = this.AsyncDataDispatcher;

            if (this._asyncDispatchers == null)
            {
                this._asyncDispatchers = new HybridDictionary(1);
            }
            this._asyncDispatchers[asyncDataDispatcher] = null;
            asyncDataDispatcher.AddRequest(request);
        }