public bool MetadataVersionRequiresRebuild(Photo targetPhoto, ILogger logging) { if (MetadataVersionHelpers.RequiresRebuild(targetPhoto.Version)) { this._logging.LogInformation($" +++ Metadata update: Metadata version Requires rebuild. (Current: {targetPhoto.Version} Expected: {Constants.CURRENT_METADATA_VERSION})"); return(true); } return(false); }
public bool MetadataVersionOutOfDate(Photo targetPhoto, ILogger logging) { if (MetadataVersionHelpers.IsOutOfDate(targetPhoto.Version)) { this._logging.LogInformation($" +++ Metadata update: Metadata version out of date. (Current: {targetPhoto.Version} Expected: {Constants.CURRENT_METADATA_VERSION})"); return(true); } return(false); }