public IFuture GetOpenDocumentFuture(FutureFeatures features)
		{
			IFuture future = new FetchDocumentFuture(this.localDocumentFuture);
			D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached));
			if (UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached))
			{
				future = new MemCacheFuture(this.cachePackage.openSourceDocumentCache, future);
			}
			D.Assert(!UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Async));
			return future;
		}
Example #2
0
        public IFuture GetOpenDocumentFuture(FutureFeatures features)
        {
            IFuture future = new FetchDocumentFuture(this.localDocumentFuture);

            D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached));
            if (UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached))
            {
                future = new MemCacheFuture(this.cachePackage.openSourceDocumentCache, future);
            }
            D.Assert(!UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Async));
            return(future);
        }
Example #3
0
        public IFuture GetOpenDocumentFuture(FutureFeatures features)
        {
            IFuture future = new FetchDocumentFuture(localDocumentFuture);

            D.Assert(HasFeature(features, FutureFeatures.MemoryCached));
            if (HasFeature(features, FutureFeatures.MemoryCached))
            {
                future = new MemCacheFuture(cachePackage.openSourceDocumentCache, future);
            }

            D.Assert(!HasFeature(features, FutureFeatures.Async));
            return(future);
        }