File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
HttpClient.Caching/InMemory Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public class InMemoryCacheHandler : DelegatingHandler
22
22
/// If the key is present and the value is false, the cache will not be checked.
23
23
/// If the key is present and the value is true, the cache will be checked.
24
24
/// </summary>
25
- public readonly static HttpRequestOptionsKey < bool > UseCache = new ( " UseCache" ) ;
25
+ public readonly static HttpRequestOptionsKey < bool > UseCache = new ( nameof ( UseCache ) ) ;
26
26
#else
27
27
/// <summary>
28
28
/// The key to use to store the UseCache value in the HttpRequestMessage.Properties dictionary.
@@ -31,7 +31,7 @@ public class InMemoryCacheHandler : DelegatingHandler
31
31
/// If the key is present and the value is false, the cache will not be checked.
32
32
/// If the key is present and the value is true, the cache will be checked.
33
33
/// </summary>
34
- public const string UseCache = " UseCache" ;
34
+ public const string UseCache = nameof ( UseCache ) ;
35
35
#endif
36
36
37
37
private static HashSet < HttpMethod > CachedHttpMethods = new HashSet < HttpMethod >
You can’t perform that action at this time.
0 commit comments