AzureFunctions.Code.Settings.GetCurrentSiteExtensionVersion C# (CSharp) Method

GetCurrentSiteExtensionVersion() public method

public GetCurrentSiteExtensionVersion ( ) : Task
return Task
        public async Task<string> GetCurrentSiteExtensionVersion()
        {
            try
            {
                using (var stream = new StreamReader(Path.Combine(AppDataPath, "version.txt")))
                {
                    return await stream.ReadToEndAsync();
                }
            }
            catch { }
            return string.Empty;
        }