public IFuture GetImageBounds(FutureFeatures features) { IFuture future = GetAccessFuture(AccessMethod.FetchBounds, FutureFeatures.Cached, new IFuture[0]); future = new MemCacheFuture(cachePackage.boundsCache, future); return(AddAsynchrony(future, features)); }
public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features) { IFuture future = new ApplyFuture(new WarpBoundsVerb(imageTransformer), new[] { unwarpedMapTileSource.GetUserBounds(latentRegionHolder, FutureFeatures.Cached) }); future = new MemCacheFuture(cachePackage.boundsCache, future); return(unwarpedMapTileSource.AddAsynchrony(future, features)); }
public IFuture GetImageBounds(FutureFeatures features) { IFuture future = new ApplyFuture(new WarpBoundsVerb(imageTransformer), new[] { unwarpedMapTileSource.GetImageBounds(features) }); future = new MemCacheFuture(cachePackage.boundsCache, future); return(unwarpedMapTileSource.AddAsynchrony(future, features)); }
internal IFuture AddAsynchrony(IFuture future, FutureFeatures features) { if (UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Async)) { future = new MemCacheFuture(this.cachePackage.asyncCache, new OpenDocumentSensitivePrioritizedFuture(this.cachePackage.openDocumentPrioritizer, Asynchronizer.MakeFuture(this.cachePackage.computeAsyncScheduler, future), this.GetOpenDocumentFuture(FutureFeatures.MemoryCached))); } return(future); }
public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features) { IFuture future = new ApplyFuture(new WarpBoundsVerb(this.imageTransformer), new IFuture[] { this.unwarpedMapTileSource.GetUserBounds(latentRegionHolder, FutureFeatures.Cached) }); future = new MemCacheFuture(this.cachePackage.boundsCache, future); return this.unwarpedMapTileSource.AddAsynchrony(future, features); }
public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features) { D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Cached)); IFuture future = new MemCacheFuture(this.cachePackage.boundsCache, new ApplyFuture(new ConstantVerb(new BoundsPresent(new RenderRegion(new MapRectangle(-85.0, -5000.0, 85.0, 5000.0), new DirtyEvent()))), new IFuture[0])); if (UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Async)) { future = new MemCacheFuture(this.cachePackage.asyncCache, Asynchronizer.MakeFuture(this.cachePackage.networkAsyncScheduler, future)); } return future; }
public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features) { D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Cached)); IFuture future = new MemCacheFuture(this.cachePackage.boundsCache, new ApplyFuture(new ConstantVerb(new BoundsPresent(new RenderRegion(new MapRectangle(-85.0, -5000.0, 85.0, 5000.0), new DirtyEvent()))), new IFuture[0])); if (UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Async)) { future = new MemCacheFuture(this.cachePackage.asyncCache, Asynchronizer.MakeFuture(this.cachePackage.networkAsyncScheduler, future)); } return(future); }
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; }
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); }
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); }
public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features) { D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached)); D.Assert(!UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Transparency)); if (latentRegionHolder == null) { latentRegionHolder = this.sourceMap.latentRegionHolder; } latentRegionHolder.RequestRenderRegion(this.GetImageBounds((FutureFeatures)7)); IFuture future = new MemCacheFuture(this.cachePackage.boundsCache, new ApplyFuture(new UserBoundsRefVerb(latentRegionHolder, this.GetImageBounds(FutureFeatures.Cached)), new IFuture[0])); return(this.AddAsynchrony(future, features)); }
public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features) { D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached)); D.Assert(!UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Transparency)); if (latentRegionHolder == null) { latentRegionHolder = this.sourceMap.latentRegionHolder; } latentRegionHolder.RequestRenderRegion(this.GetImageBounds((FutureFeatures)7)); IFuture future = new MemCacheFuture(this.cachePackage.boundsCache, new ApplyFuture(new UserBoundsRefVerb(latentRegionHolder, this.GetImageBounds(FutureFeatures.Cached)), new IFuture[0])); return this.AddAsynchrony(future, features); }
public IFuture GetImageBounds(FutureFeatures features) { IFuture future = this.GetAccessFuture(AccessMethod.FetchBounds, FutureFeatures.Cached, new IFuture[0]); future = new MemCacheFuture(this.cachePackage.boundsCache, future); return this.AddAsynchrony(future, features); }
internal IFuture AddAsynchrony(IFuture future, FutureFeatures features) { if (UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Async)) { future = new MemCacheFuture(this.cachePackage.asyncCache, new OpenDocumentSensitivePrioritizedFuture(this.cachePackage.openDocumentPrioritizer, Asynchronizer.MakeFuture(this.cachePackage.computeAsyncScheduler, future), this.GetOpenDocumentFuture(FutureFeatures.MemoryCached))); } return future; }
public IFuture GetImageBounds(FutureFeatures features) { IFuture future = new ApplyFuture(new WarpBoundsVerb(this.imageTransformer), new IFuture[] { this.unwarpedMapTileSource.GetImageBounds(features) }); future = new MemCacheFuture(this.cachePackage.boundsCache, future); return this.unwarpedMapTileSource.AddAsynchrony(future, features); }