Example #1
0
        /// <summary>
        /// Retrieves instance of <see cref="Version"/> representing the first version of the application.
        /// </summary>
        /// <returns>Returns latest application version object.</returns>
        public async Task <Version> GetFirstVersion()
        {
            VersionRef versionRef = await GetLatestVersionRef();

            if (versionRef == null)
            {
                return(null);
            }

            return(await versionRef.GetVersion());
        }
Example #2
0
        /// <summary>
        /// Retrieves instance of <see cref="Version"/> representing a version of the application.
        /// </summary>
        /// <param name="versionString">String representing a version of the application.</param>
        /// <returns>Returns application version object.</returns>
        public async Task <Version> GetVersion(string versionString)
        {
            VersionRef versionRef = await GetVersionRef(versionString);

            if (versionRef == null)
            {
                return(null);
            }

            return(await versionRef.GetVersion());
        }