Пример #1
0
 public ImageryService(ILogger <ImageryService> logger)
 {
     _logger      = logger;
     _meshService = null;
     appSecrets   = null;
     options      = null;
     cache        = null;
 }
Пример #2
0
 public ImageryService(IMeshService meshService,
                       IOptions <AppSecrets> appSecrets,
                       IOptions <DEMNetOptions> options,
                       IMemoryCache cache,
                       ILogger <ImageryService> logger = null)
 {
     _logger         = logger;
     _meshService    = meshService;
     this.appSecrets = appSecrets?.Value;
     this.options    = options?.Value;
     this.cache      = cache;
 }
Пример #3
0
        public ImageryCache(IMemoryCache cache,
                            IOptions <DEMNetOptions> options,
                            IHttpClientFactory clientFactory)
        {
            this.cache = cache;

            this.options             = options.Value;
            this.diskExpirationHours = TimeSpan.FromHours(options.Value.ImageryDiskCacheExpirationHours);

            this.httpClientFactory = clientFactory;
            this._localDirectory   = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), RasterService.APP_NAME, IMAGERY_DIR);
            CreateDirectoryIfNotExists(_localDirectory);
        }
Пример #4
0
 public DefaultOsmProcessor(ElevationService elevationService
                            , SharpGltfService gltfService
                            , MeshService meshService
                            , IOsmDataServiceFactory dataServiceFactory
                            , IOptions <DEMNetOptions> options
                            , IOptions <OsmElevationOptions> osmOptions
                            , ILogger <DefaultOsmProcessor> logger)
 {
     this._dataServiceFactory = dataServiceFactory;
     this._options            = options.Value;
     this.Settings            = osmOptions.Value;
     this._elevationService   = elevationService;
     this._gltfService        = gltfService;
     this._meshService        = meshService;
     this._logger             = logger;
 }
Пример #5
0
 public MeshReducer(ILogger <MeshReducer> logger, IOptions <DEMNetOptions> options)
 {
     _logger  = logger;
     _options = options?.Value;
 }