public LocalTileSource(ICacheOptionsProvider cacheOptionsProvider) : base((int)CalculateTotalImageSize(maxZoomLevel), (int)CalculateTotalImageSize(maxZoomLevel), tileSize, tileSize, cacheOptionsProvider) { DirectoryInfo dir = new DirectoryInfo(Directory.GetCurrentDirectory()); directoryPath = dir.Parent.Parent.FullName; }
public LocalTileSource(ICacheOptionsProvider cacheOptionsProvider) : base((int)CalculateTotalImageSize(maxZoomLevel), (int)CalculateTotalImageSize(maxZoomLevel), tileSize, tileSize, cacheOptionsProvider) { //DirectoryInfo dir = new DirectoryInfo(Directory.GetCurrentDirectory()); //directoryPath = dir.Parent.Parent.FullName; DirectoryInfo dir = new DirectoryInfo(System.Windows.Forms.Application.StartupPath + "\\TMaps\\"); directoryPath = dir.FullName; }
public CachedCommandDispatcher(ICacheKeyProvider cacheKeyProvider, IFrameworkCommandDispatcher commandDispatcher, ICacheOptionsProvider cacheOptionsProvider, ICacheAdapter cacheAdapter) { _cacheKeyProvider = cacheKeyProvider; _commandDispatcher = commandDispatcher; _cacheOptionsProvider = cacheOptionsProvider; _cacheAdapter = cacheAdapter; }
public CacheInterceptor(ICacheOptionsProvider cacheOptionsProvider) { _cacheOptionsProvider = cacheOptionsProvider ?? throw new ArgumentNullException(nameof(cacheOptionsProvider)); }