public ImageryService(ILogger <ImageryService> logger) { _logger = logger; _meshService = null; appSecrets = null; options = null; cache = null; }
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; }
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); }
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; }
public MeshReducer(ILogger <MeshReducer> logger, IOptions <DEMNetOptions> options) { _logger = logger; _options = options?.Value; }