Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release-notes/7.0/preview/api-diff/rc1/Microsoft.AspNetCore.App/7.0-rc1_Microsoft.AspNetCore.OutputCaching.md')
-rw-r--r--release-notes/7.0/preview/api-diff/rc1/Microsoft.AspNetCore.App/7.0-rc1_Microsoft.AspNetCore.OutputCaching.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/release-notes/7.0/preview/api-diff/rc1/Microsoft.AspNetCore.App/7.0-rc1_Microsoft.AspNetCore.OutputCaching.md b/release-notes/7.0/preview/api-diff/rc1/Microsoft.AspNetCore.App/7.0-rc1_Microsoft.AspNetCore.OutputCaching.md
new file mode 100644
index 00000000..07fd0572
--- /dev/null
+++ b/release-notes/7.0/preview/api-diff/rc1/Microsoft.AspNetCore.App/7.0-rc1_Microsoft.AspNetCore.OutputCaching.md
@@ -0,0 +1,35 @@
+# Microsoft.AspNetCore.OutputCaching
+
+``` diff
+ namespace Microsoft.AspNetCore.OutputCaching {
+ public sealed class CacheVaryByRules {
++ public StringValues HeaderNames { [CompilerGeneratedAttribute] get; [CompilerGeneratedAttribute] set; }
+- public StringValues Headers { [CompilerGeneratedAttribute] get; [CompilerGeneratedAttribute] set; }
++ public StringValues RouteValueNames { [CompilerGeneratedAttribute] get; [CompilerGeneratedAttribute] set; }
+ }
+ [AttributeUsageAttribute(68, AllowMultiple=false, Inherited=true)]
+ public sealed class OutputCacheAttribute : Attribute {
++ public string[]? VaryByHeaderNames { [CompilerGeneratedAttribute] get; [CompilerGeneratedAttribute] set; }
+- public string[]? VaryByHeaders { [CompilerGeneratedAttribute] get; [CompilerGeneratedAttribute] set; }
++ public string[]? VaryByRouteValueNames { [CompilerGeneratedAttribute] get; [CompilerGeneratedAttribute] set; }
+ }
+ public sealed class OutputCacheContext {
++ public OutputCacheContext();
+- public CacheVaryByRules CacheVaryByRules { [CompilerGeneratedAttribute] get; [CompilerGeneratedAttribute] set; }
++ public CacheVaryByRules CacheVaryByRules { [CompilerGeneratedAttribute] get; }
+- public HttpContext HttpContext { [CompilerGeneratedAttribute] get; }
++ public required HttpContext HttpContext { [CompilerGeneratedAttribute] get; [CompilerGeneratedAttribute] set; }
+- public DateTimeOffset? ResponseTime { [CompilerGeneratedAttribute] get; }
++ public DateTimeOffset? ResponseTime { [CompilerGeneratedAttribute] get; [CompilerGeneratedAttribute] set; }
+ }
+ public sealed class OutputCachePolicyBuilder {
++ public OutputCachePolicyBuilder Cache();
+- public OutputCachePolicyBuilder VaryByHeader(params string[] headers);
++ public OutputCachePolicyBuilder VaryByHeader(params string[] headerNames);
++ public OutputCachePolicyBuilder VaryByRouteValue(params string[] routeValueNames);
+- public OutputCachePolicyBuilder With(Func<OutputCacheContext, CancellationToken, Task<bool>> predicate);
++ public OutputCachePolicyBuilder With(Func<OutputCacheContext, CancellationToken, ValueTask<bool>> predicate);
+ }
+ }
+```
+