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