Esempio n. 1
0
        public HomeController(ILogger <HomeController> logger, IWebHostEnvironment webHostEnvironment)
        {
            var dataFolder = Path.Combine(webHostEnvironment.WebRootPath, "data");

            _logger    = logger;
            _memoryMap = new MemoryMap <FileStatus>(memoryMapName: "demo", directoryPath: dataFolder, fileName: "info.json");

            _fileStatus = _memoryMap.ReadData();
        }