예제 #1
0
        /// <inheritdoc />
        public Task ProcessCargoFile(FileInfo cargoFile)
        {
            if (!cargoFile.Exists)
            {
                return(Task.CompletedTask);
            }

            string content = ReadAllText(cargoFile);

            if (!IsInCache(cargoFile, content))
            {
                AddToCache(cargoFile, content);
                CargoUpdated?.Invoke(this, content);
            }

            return(Task.CompletedTask);
        }
예제 #2
0
 private void FireCargoUpdatedEvent(CargoEvent.CargoEventArgs evt) => CargoUpdated?.Invoke(this, evt);