Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }