/// <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); }
private void FireCargoUpdatedEvent(CargoEvent.CargoEventArgs evt) => CargoUpdated?.Invoke(this, evt);