Bumped package version to 1.3.6. Added RouteFileCache.Cached function that doesn't return content.

This commit is contained in:
MattMo 2023-03-03 13:02:11 -08:00
parent f4fe34e461
commit c0f029ce08
2 changed files with 12 additions and 1 deletions

View File

@ -17,7 +17,7 @@
<AssemblyName>MontoyaTech.Rest.Net</AssemblyName> <AssemblyName>MontoyaTech.Rest.Net</AssemblyName>
<RootNamespace>MontoyaTech.Rest.Net</RootNamespace> <RootNamespace>MontoyaTech.Rest.Net</RootNamespace>
<GenerateDocumentationFile>True</GenerateDocumentationFile> <GenerateDocumentationFile>True</GenerateDocumentationFile>
<Version>1.3.5</Version> <Version>1.3.6</Version>
<PackageReleaseNotes></PackageReleaseNotes> <PackageReleaseNotes></PackageReleaseNotes>
<PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon> <PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon>
</PropertyGroup> </PropertyGroup>

View File

@ -87,6 +87,17 @@ namespace MontoyaTech.Rest.Net
} }
} }
/// <summary>
/// Returns whether or not a file was cached.
/// </summary>
/// <param name="filePath"></param>
/// <returns></returns>
public bool Cached(string filePath)
{
lock (this.CachedFiles)
return this.CachedFiles.ContainsKey(filePath);
}
/// <summary> /// <summary>
/// Caches a new file and returns the content, if the file was already cached the content will be returned. /// Caches a new file and returns the content, if the file was already cached the content will be returned.
/// </summary> /// </summary>