Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# API difference between .NET 11.0 Preview 6 and .NET 11.0 RC 1

API listing follows standard diff formatting.
Lines preceded by a '+' are additions and a '-' indicates removal.

* [Microsoft.AspNetCore.Authorization](11.0-rc1_Microsoft.AspNetCore.Authorization.md)
* [Microsoft.AspNetCore.Components](11.0-rc1_Microsoft.AspNetCore.Components.md)
* [Microsoft.AspNetCore.Components.Authorization](11.0-rc1_Microsoft.AspNetCore.Components.Authorization.md)
* [Microsoft.AspNetCore.Components.Endpoints](11.0-rc1_Microsoft.AspNetCore.Components.Endpoints.md)
* [Microsoft.AspNetCore.Components.Forms](11.0-rc1_Microsoft.AspNetCore.Components.Forms.md)
* [Microsoft.AspNetCore.Components.Server](11.0-rc1_Microsoft.AspNetCore.Components.Server.md)
* [Microsoft.AspNetCore.Components.Web](11.0-rc1_Microsoft.AspNetCore.Components.Web.md)
* [Microsoft.AspNetCore.Http.Features](11.0-rc1_Microsoft.AspNetCore.Http.Features.md)
* [Microsoft.AspNetCore.Http.Results](11.0-rc1_Microsoft.AspNetCore.Http.Results.md)
* [Microsoft.AspNetCore.Mvc.Abstractions](11.0-rc1_Microsoft.AspNetCore.Mvc.Abstractions.md)
* [Microsoft.AspNetCore.Mvc.Core](11.0-rc1_Microsoft.AspNetCore.Mvc.Core.md)
* [Microsoft.AspNetCore.Mvc.TagHelpers](11.0-rc1_Microsoft.AspNetCore.Mvc.TagHelpers.md)
* [Microsoft.AspNetCore.Server.HttpSys](11.0-rc1_Microsoft.AspNetCore.Server.HttpSys.md)
* [Microsoft.Extensions.Identity.Core](11.0-rc1_Microsoft.Extensions.Identity.Core.md)
* [Microsoft.Extensions.Identity.Stores](11.0-rc1_Microsoft.Extensions.Identity.Stores.md)
* [Microsoft.Extensions.Validation](11.0-rc1_Microsoft.Extensions.Validation.md)
* [Microsoft.Extensions.Validation.Localization](11.0-rc1_Microsoft.Extensions.Validation.Localization.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft.AspNetCore.Authorization

```diff
namespace Microsoft.AspNetCore.Authorization
{
public class AuthorizationPolicy
{
+ public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authorization.AuthorizationPolicy?> CombineAsync(Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.Collections.Generic.IEnumerable<object> metadata);
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.AspNetCore.Components.Authorization

```diff
namespace Microsoft.AspNetCore.Components.Authorization
{
+ [Microsoft.AspNetCore.Components.CacheBehaviorAttribute(Microsoft.AspNetCore.Components.CacheBehavior.Throw)]
+ [Microsoft.AspNetCore.Components.CacheConditionAttribute(Microsoft.AspNetCore.Components.CacheVaryBy.User)]
public abstract class AuthorizeViewCore : Microsoft.AspNetCore.Components.ComponentBase
{
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Microsoft.AspNetCore.Components.Endpoints

```diff
namespace Microsoft.AspNetCore.Components
{
public sealed class BrowserOptions
{
- public Microsoft.AspNetCore.Components.InteractiveServerBrowserOptions Server { get; }
- public Microsoft.AspNetCore.Components.SsrBrowserOptions Ssr { get; }
- public Microsoft.AspNetCore.Components.WebAssemblyBrowserOptions WebAssembly { get; }
+ public static Microsoft.AspNetCore.Components.BrowserOptions GetBrowserOptions(Microsoft.AspNetCore.Http.HttpContext context);
+ [System.Text.Json.Serialization.JsonPropertyNameAttribute("server")]
+ public Microsoft.AspNetCore.Components.InteractiveServerBrowserOptions InteractiveServer { get; }
+ [System.Text.Json.Serialization.JsonPropertyNameAttribute("webAssembly")]
+ public Microsoft.AspNetCore.Components.InteractiveWebAssemblyBrowserOptions InteractiveWebAssembly { get; }
+ [System.Text.Json.Serialization.JsonPropertyNameAttribute("ssr")]
+ public Microsoft.AspNetCore.Components.StaticServerBrowserOptions StaticServer { get; }
}
- public static class BrowserOptionsHttpContextExtensions
- {
- public static Microsoft.AspNetCore.Components.BrowserOptions GetBrowserOptions(this Microsoft.AspNetCore.Http.HttpContext context);
- }
public sealed class ConfigureBrowser : Microsoft.AspNetCore.Components.IComponent
{
- [Microsoft.AspNetCore.Components.CascadingParameterAttribute]
- public Microsoft.AspNetCore.Http.HttpContext? HttpContext { get; set; }
}
public sealed class InteractiveServerBrowserOptions
{
+ [System.Text.Json.Serialization.JsonExtensionDataAttribute]
+ public System.Collections.Generic.IDictionary<string, System.Text.Json.JsonElement> Extensions { get; }
}
- public sealed class SsrBrowserOptions
- {
- public SsrBrowserOptions();
- [System.Text.Json.Serialization.JsonPropertyNameAttribute("circuitInactivityTimeoutMs")]
- public System.TimeSpan? CircuitInactivityTimeout { get; set; }
- [System.Text.Json.Serialization.JsonPropertyNameAttribute("disableDomPreservation")]
- public bool? PreserveDom { get; set; }
- }
- public sealed class WebAssemblyBrowserOptions
- {
- public WebAssemblyBrowserOptions();
- public string? ApplicationCulture { get; set; }
- public string? EnvironmentName { get; set; }
- public System.Collections.Generic.IDictionary<string, string> EnvironmentVariables { get; }
- }
+ public sealed class CacheView : Microsoft.AspNetCore.Components.IComponent, System.IDisposable
+ {
+ public CacheView();
+ public void Dispose();
+ void Microsoft.AspNetCore.Components.IComponent.Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle);
+ System.Threading.Tasks.Task? Microsoft.AspNetCore.Components.IComponent.SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters);
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public string? CacheKey { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public Microsoft.AspNetCore.Components.RenderFragment? ChildContent { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public bool Enabled { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public System.TimeSpan? ExpiresAfter { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public System.DateTimeOffset? ExpiresOn { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public System.TimeSpan? ExpiresSliding { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public string? VaryBy { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public string? VaryByCookie { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public bool VaryByCulture { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public string? VaryByHeader { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public string? VaryByQuery { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public string? VaryByRoute { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public bool VaryByUser { get; set; }
+ }
+ public sealed class InteractiveWebAssemblyBrowserOptions
+ {
+ public InteractiveWebAssemblyBrowserOptions();
+ public string? ApplicationCulture { get; set; }
+ public string? EnvironmentName { get; set; }
+ public System.Collections.Generic.IDictionary<string, string> EnvironmentVariables { get; }
+ }
+ public sealed class StaticServerBrowserOptions
+ {
+ public StaticServerBrowserOptions();
+ [System.Text.Json.Serialization.JsonPropertyNameAttribute("circuitInactivityTimeoutMs")]
+ public System.TimeSpan? CircuitInactivityTimeout { get; set; }
+ [System.Text.Json.Serialization.JsonPropertyNameAttribute("disableDomPreservation")]
+ public bool? PreserveDom { get; set; }
+ }
}
namespace Microsoft.AspNetCore.Components.Endpoints
{
public sealed class RazorComponentsServiceOptions
{
+ public Microsoft.Extensions.Caching.Hybrid.HybridCache? CacheViewHybridCache { get; set; }
+ public long CacheViewSizeLimit { get; set; }
+ public bool DisableClientValidation { get; set; }
}
}
+ namespace Microsoft.AspNetCore.Components.Forms
+ {
+ public sealed class ClientValidationRule
+ {
+ public ClientValidationRule(string name, System.Collections.Generic.IReadOnlyDictionary<string, string>? parameters = null);
+ public string Name { get; }
+ public System.Collections.Generic.IReadOnlyDictionary<string, string> Parameters { get; }
+ }
+ public interface IClientValidationRuleProvider
+ {
+ System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Components.Forms.ClientValidationRule> GetClientValidationRules();
+ }
+ }
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Microsoft.AspNetCore.Components.Forms

```diff
namespace Microsoft.AspNetCore.Components.Forms
{
public class DataAnnotationsValidator : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable
{
- [Microsoft.AspNetCore.Components.ParameterAttribute]
- public bool EnableClientValidation { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public bool DisableClientValidation { get; set; }
}
public sealed class EditContext
{
- public event System.Func<object, Microsoft.AspNetCore.Components.Forms.ValidationRequestedEventArgs, System.Threading.Tasks.Task>? OnValidationRequestedAsync { add; remove; }
- public void AddValidationTask(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier, System.Threading.Tasks.Task task, System.Threading.CancellationTokenSource cts);
+ [System.ObsoleteAttribute("Validate is obsolete. Use ValidateAsync instead.")]
public bool Validate();
+ public void RegisterAsyncFieldValidator(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier, System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task> validator);
}
public sealed class ValidationRequestedEventArgs : System.EventArgs
{
- public ValidationRequestedEventArgs(System.Threading.CancellationToken cancellationToken);
- public System.Threading.CancellationToken CancellationToken { get; }
+ public void AddAsyncValidator(System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task> validator);
}
}
- namespace Microsoft.AspNetCore.Components.Forms.ClientValidation
- {
- public sealed class ClientValidationRule
- {
- public ClientValidationRule(string name, string errorMessage);
- public Microsoft.AspNetCore.Components.Forms.ClientValidation.ClientValidationRule WithParameter(string name, object? value);
- public string ErrorMessage { get; }
- public string Name { get; }
- public System.Collections.Generic.IReadOnlyDictionary<string, object?> Parameters { get; }
- }
- public interface IClientValidationAdapter
- {
- System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Components.Forms.ClientValidation.ClientValidationRule> GetClientValidationRules(string errorMessage);
- }
- public interface IClientValidationService
- {
- System.Collections.Generic.IReadOnlyDictionary<string, object>? GetClientValidationAttributes(Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier);
- }
- }
- namespace Microsoft.Extensions.DependencyInjection
- {
- public static class ClientValidationServiceCollectionExtensions
- {
- public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddClientValidation(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
- }
- }
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.AspNetCore.Components.Server

```diff
namespace Microsoft.AspNetCore.Components.Server.Circuits
{
public sealed class Circuit
{
- public System.Threading.Tasks.ValueTask<bool> RequestCircuitPauseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ public System.Threading.Tasks.Task<bool> RequestCircuitPauseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Microsoft.AspNetCore.Components.Web

```diff
namespace Microsoft.AspNetCore.Components.Forms
{
+ [Microsoft.AspNetCore.Components.CacheBehaviorAttribute(Microsoft.AspNetCore.Components.CacheBehavior.Rerender)]
public class AntiforgeryToken : Microsoft.AspNetCore.Components.IComponent
{
}
+ public abstract class ClientValidationProvider
+ {
+ protected ClientValidationProvider();
+ public abstract Microsoft.AspNetCore.Components.RenderFragment? RenderClientValidationRules(Microsoft.AspNetCore.Components.Forms.EditContext editContext, System.Collections.Generic.IReadOnlyDictionary<Microsoft.AspNetCore.Components.Forms.FieldIdentifier, string> renderedFields);
+ }
}
namespace Microsoft.AspNetCore.Components.Web
{
+ [Microsoft.AspNetCore.Components.CacheBehaviorAttribute(Microsoft.AspNetCore.Components.CacheBehavior.Rerender)]
public sealed class HeadOutlet : Microsoft.AspNetCore.Components.ComponentBase
{
}
}
namespace Microsoft.AspNetCore.Components.Web.Virtualization
{
+ [Microsoft.AspNetCore.Components.CacheBehaviorAttribute(Microsoft.AspNetCore.Components.CacheBehavior.Throw)]
public sealed class Virtualize<TItem> : Microsoft.AspNetCore.Components.ComponentBase, System.IAsyncDisposable
{
- public System.Threading.Tasks.Task ScrollToIndexAsync(int itemIndex, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- [Microsoft.AspNetCore.Components.ParameterAttribute]
- public int InitialIndex { get; set; }
+ public System.Threading.Tasks.Task ScrollToItemAsync(int itemIndex, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ public int InitialItemIndex { get; set; }
}
public enum VirtualizeAnchorMode
{
- Beginning = 1,
+ Start = 1,
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Microsoft.AspNetCore.Components

```diff
namespace Microsoft.AspNetCore.Components
{
+ public enum CacheBehavior
+ {
+ Rerender = 0,
+ Throw = 1,
+ }
+ public sealed class CacheBehaviorAttribute : System.Attribute
+ {
+ public CacheBehaviorAttribute(Microsoft.AspNetCore.Components.CacheBehavior behavior);
+ public Microsoft.AspNetCore.Components.CacheBehavior Behavior { get; }
+ }
+ public sealed class CacheConditionAttribute : System.Attribute
+ {
+ public CacheConditionAttribute(Microsoft.AspNetCore.Components.CacheVaryBy varyBy);
+ public Microsoft.AspNetCore.Components.CacheVaryBy VaryBy { get; }
+ }
+ [System.FlagsAttribute]
+ public enum CacheVaryBy
+ {
+ None = 0,
+ Query = 1,
+ User = 16,
+ Route = 2,
+ Culture = 32,
+ Header = 4,
+ Cookie = 8,
+ }
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Microsoft.AspNetCore.Http.Features

```diff
namespace Microsoft.AspNetCore.Http.Features
{
public interface ITlsConnectionFeature
{
+ bool TryGetChannelBindingBytes(System.Security.Authentication.ExtendedProtection.ChannelBindingKind kind, out System.ReadOnlyMemory<byte> channelBindingToken);
}
+ [System.ObsoleteAttribute("ITlsTokenBindingFeature is deprecated. TLS Token Binding (RFC 8471) has not been adopted by browsers.", DiagnosticId = "ASPDEPR010", UrlFormat = "https://aka.ms/aspnet/deprecate/010")]
public interface ITlsTokenBindingFeature
{
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft.AspNetCore.Http.Results

```diff
namespace Microsoft.AspNetCore.Http.HttpResults
{
public sealed class UnauthorizedHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult
{
+ static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder);
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.AspNetCore.Mvc.Abstractions

```diff
namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata
{
public readonly struct ModelMetadataIdentity : System.IEquatable<Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity>
{
- [System.ObsoleteAttribute("This API is obsolete and may be removed in a future release. Please use the overload that takes a PropertyInfo object.")]
- public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty(System.Type modelType, string name, System.Type containerType);
}
}
```
Loading