From c0f029ce085287ee7ab59252d52eede1c1c95399 Mon Sep 17 00:00:00 2001 From: MattMo Date: Fri, 3 Mar 2023 13:02:11 -0800 Subject: [PATCH] Bumped package version to 1.3.6. Added RouteFileCache.Cached function that doesn't return content. --- Rest.Net/Rest.Net.csproj | 2 +- Rest.Net/RouteFileCache.cs | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Rest.Net/Rest.Net.csproj b/Rest.Net/Rest.Net.csproj index b72ca9f..8a59b13 100644 --- a/Rest.Net/Rest.Net.csproj +++ b/Rest.Net/Rest.Net.csproj @@ -17,7 +17,7 @@ MontoyaTech.Rest.Net MontoyaTech.Rest.Net True - 1.3.5 + 1.3.6 Logo_Symbol_Black_Outline.png diff --git a/Rest.Net/RouteFileCache.cs b/Rest.Net/RouteFileCache.cs index 61e9bc2..84c1b98 100644 --- a/Rest.Net/RouteFileCache.cs +++ b/Rest.Net/RouteFileCache.cs @@ -87,6 +87,17 @@ namespace MontoyaTech.Rest.Net } } + /// + /// Returns whether or not a file was cached. + /// + /// + /// + public bool Cached(string filePath) + { + lock (this.CachedFiles) + return this.CachedFiles.ContainsKey(filePath); + } + /// /// Caches a new file and returns the content, if the file was already cached the content will be returned. ///