예제 #1
0
        private PtsCache(Dispatcher dispatcher)
        {
            _contextPool = new List <ContextDesc>(1);



            PtsCacheShutDownListener listener = new PtsCacheShutDownListener(this);
        }
예제 #2
0
        private PtsCache(Dispatcher dispatcher)
        {
            // Initially allocate just one entry. The constructor gets called
            // when acquiring the first PTS Context, so it guarantees at least
            // one element in the collection.
            _contextPool = new List<ContextDesc>(1);

            // Register for ShutdownFinished event for the Dispatcher. When Dispatcher
            // finishes the shutdown process, all associated resources stored in its
            // PTS context pool need to be disposed as well.
            // NOTE: Cannot do this work during ShutdownStarted, because after this
            //       event is fired, layout process may still be executed.

            // Add an event handler for AppDomain unload. If Dispatcher is not running
            // we are not going to receive ShutdownFinished to do appropriate cleanup.
            // When an AppDomain is unloaded, we'll be called back on a worker thread.
            PtsCacheShutDownListener listener = new PtsCacheShutDownListener(this);
        }
예제 #3
0
파일: PtsCache.cs 프로젝트: JianwenSun/cc
        private PtsCache(Dispatcher dispatcher)
        {



            _contextPool = new List<ContextDesc>(1);










            PtsCacheShutDownListener listener = new PtsCacheShutDownListener(this);
        }