Example #1
0
            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;
            }
Example #2
0
 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;
 }
Example #3
0
 public CachedCommandDispatcher(ICacheKeyProvider cacheKeyProvider,
                                IFrameworkCommandDispatcher commandDispatcher,
                                ICacheOptionsProvider cacheOptionsProvider,
                                ICacheAdapter cacheAdapter)
 {
     _cacheKeyProvider     = cacheKeyProvider;
     _commandDispatcher    = commandDispatcher;
     _cacheOptionsProvider = cacheOptionsProvider;
     _cacheAdapter         = cacheAdapter;
 }
Example #4
0
 public CacheInterceptor(ICacheOptionsProvider cacheOptionsProvider)
 {
     _cacheOptionsProvider =
         cacheOptionsProvider ?? throw new ArgumentNullException(nameof(cacheOptionsProvider));
 }