Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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,49 @@
# API difference between .NET 10.0 GA and .NET 11.0 Preview 7

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

* [Microsoft.AspNetCore.Components](11.0.0_Microsoft.AspNetCore.Components.md)
* [Microsoft.AspNetCore.Components.Authorization](11.0.0_Microsoft.AspNetCore.Components.Authorization.md)
* [Microsoft.AspNetCore.Components.Endpoints](11.0.0_Microsoft.AspNetCore.Components.Endpoints.md)
* [Microsoft.AspNetCore.Components.Forms](11.0.0_Microsoft.AspNetCore.Components.Forms.md)
* [Microsoft.AspNetCore.Components.Server](11.0.0_Microsoft.AspNetCore.Components.Server.md)
* [Microsoft.AspNetCore.Components.Web](11.0.0_Microsoft.AspNetCore.Components.Web.md)
* [Microsoft.AspNetCore.Connections.Abstractions](11.0.0_Microsoft.AspNetCore.Connections.Abstractions.md)
* [Microsoft.AspNetCore.DataProtection](11.0.0_Microsoft.AspNetCore.DataProtection.md)
* [Microsoft.AspNetCore.DataProtection.Abstractions](11.0.0_Microsoft.AspNetCore.DataProtection.Abstractions.md)
* [Microsoft.AspNetCore.Http.Abstractions](11.0.0_Microsoft.AspNetCore.Http.Abstractions.md)
* [Microsoft.AspNetCore.Http.Connections](11.0.0_Microsoft.AspNetCore.Http.Connections.md)
* [Microsoft.AspNetCore.Http.Connections.Common](11.0.0_Microsoft.AspNetCore.Http.Connections.Common.md)
* [Microsoft.AspNetCore.Http.Features](11.0.0_Microsoft.AspNetCore.Http.Features.md)
* [Microsoft.AspNetCore.Mvc.Abstractions](11.0.0_Microsoft.AspNetCore.Mvc.Abstractions.md)
* [Microsoft.AspNetCore.Mvc.Core](11.0.0_Microsoft.AspNetCore.Mvc.Core.md)
* [Microsoft.AspNetCore.Mvc.TagHelpers](11.0.0_Microsoft.AspNetCore.Mvc.TagHelpers.md)
* [Microsoft.AspNetCore.OutputCaching](11.0.0_Microsoft.AspNetCore.OutputCaching.md)
* [Microsoft.AspNetCore.ResponseCompression](11.0.0_Microsoft.AspNetCore.ResponseCompression.md)
* [Microsoft.AspNetCore.Routing](11.0.0_Microsoft.AspNetCore.Routing.md)
* [Microsoft.AspNetCore.Server.HttpSys](11.0.0_Microsoft.AspNetCore.Server.HttpSys.md)
* [Microsoft.AspNetCore.Server.Kestrel.Core](11.0.0_Microsoft.AspNetCore.Server.Kestrel.Core.md)
* [Microsoft.AspNetCore.Server.Kestrel.Transport.Quic](11.0.0_Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.md)
* [Microsoft.AspNetCore.SignalR.Core](11.0.0_Microsoft.AspNetCore.SignalR.Core.md)
* [Microsoft.AspNetCore.StaticAssets](11.0.0_Microsoft.AspNetCore.StaticAssets.md)
* [Microsoft.Extensions.Caching.Abstractions](11.0.0_Microsoft.Extensions.Caching.Abstractions.md)
* [Microsoft.Extensions.Caching.Memory](11.0.0_Microsoft.Extensions.Caching.Memory.md)
* [Microsoft.Extensions.Configuration.Abstractions](11.0.0_Microsoft.Extensions.Configuration.Abstractions.md)
* [Microsoft.Extensions.Configuration.EnvironmentVariables](11.0.0_Microsoft.Extensions.Configuration.EnvironmentVariables.md)
* [Microsoft.Extensions.DependencyInjection.Abstractions](11.0.0_Microsoft.Extensions.DependencyInjection.Abstractions.md)
* [Microsoft.Extensions.Diagnostics](11.0.0_Microsoft.Extensions.Diagnostics.md)
* [Microsoft.Extensions.Diagnostics.Abstractions](11.0.0_Microsoft.Extensions.Diagnostics.Abstractions.md)
* [Microsoft.Extensions.FileProviders.Abstractions](11.0.0_Microsoft.Extensions.FileProviders.Abstractions.md)
* [Microsoft.Extensions.Hosting.Abstractions](11.0.0_Microsoft.Extensions.Hosting.Abstractions.md)
* [Microsoft.Extensions.Identity.Core](11.0.0_Microsoft.Extensions.Identity.Core.md)
* [Microsoft.Extensions.Identity.Stores](11.0.0_Microsoft.Extensions.Identity.Stores.md)
* [Microsoft.Extensions.Logging.Abstractions](11.0.0_Microsoft.Extensions.Logging.Abstractions.md)
* [Microsoft.Extensions.Options](11.0.0_Microsoft.Extensions.Options.md)
* [Microsoft.Extensions.Options.DataAnnotations](11.0.0_Microsoft.Extensions.Options.DataAnnotations.md)
* [Microsoft.Extensions.Primitives](11.0.0_Microsoft.Extensions.Primitives.md)
* [Microsoft.Extensions.Validation](11.0.0_Microsoft.Extensions.Validation.md)
* [Microsoft.Extensions.Validation.Localization](11.0.0_Microsoft.Extensions.Validation.Localization.md)
* [System.Diagnostics.EventLog](11.0.0_System.Diagnostics.EventLog.md)
* [System.Formats.Cbor](11.0.0_System.Formats.Cbor.md)
* [System.Security.Cryptography.Pkcs](11.0.0_System.Security.Cryptography.Pkcs.md)
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,123 @@
# Microsoft.AspNetCore.Components.Endpoints

```diff
namespace Microsoft.AspNetCore.Builder
{
public static class RazorComponentsEndpointConventionBuilderExtensions
{
+ public static Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder WithBrowserOptions(this Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder builder, System.Action<Microsoft.AspNetCore.Components.BrowserOptions> configureOptions);
}
}
namespace Microsoft.AspNetCore.Components
{
+ public sealed class BrowserOptions
+ {
+ public BrowserOptions();
+ public Microsoft.Extensions.Logging.LogLevel? LogLevel { get; set; }
+ public Microsoft.AspNetCore.Components.InteractiveServerBrowserOptions Server { get; }
+ public Microsoft.AspNetCore.Components.SsrBrowserOptions Ssr { get; }
+ public Microsoft.AspNetCore.Components.WebAssemblyBrowserOptions WebAssembly { get; }
+ }
+ public static class BrowserOptionsHttpContextExtensions
+ {
+ public static Microsoft.AspNetCore.Components.BrowserOptions GetBrowserOptions(this Microsoft.AspNetCore.Http.HttpContext context);
+ }
+ 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 ConfigureBrowser : Microsoft.AspNetCore.Components.IComponent
+ {
+ public ConfigureBrowser();
+ 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.CascadingParameterAttribute]
+ public Microsoft.AspNetCore.Http.HttpContext? HttpContext { get; set; }
+ [Microsoft.AspNetCore.Components.ParameterAttribute]
+ [Microsoft.AspNetCore.Components.EditorRequiredAttribute]
+ public Microsoft.AspNetCore.Components.BrowserOptions Options { get; set; }
+ }
+ public sealed class InteractiveServerBrowserOptions
+ {
+ public InteractiveServerBrowserOptions();
+ [System.Text.Json.Serialization.JsonExtensionDataAttribute]
+ public System.Collections.Generic.IDictionary<string, System.Text.Json.JsonElement> Extensions { get; }
+ public string? ReconnectionDialogId { get; set; }
+ public int? ReconnectionMaxRetries { get; set; }
+ [System.Text.Json.Serialization.JsonPropertyNameAttribute("reconnectionRetryIntervalMilliseconds")]
+ public System.TimeSpan? ReconnectionRetryInterval { get; set; }
+ }
+ public interface ITempData : System.Collections.Generic.IDictionary<string, object?>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object?>>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, object?>>, System.Collections.IEnumerable
+ {
+ object? Get(string key);
+ void Keep();
+ void Keep(string key);
+ object? Peek(string key);
+ }
+ 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; }
+ }
}
namespace Microsoft.AspNetCore.Components.Endpoints
{
public sealed class RazorComponentsServiceOptions
{
+ public Microsoft.Extensions.Caching.Hybrid.HybridCache? CacheViewHybridCache { get; set; }
+ public long CacheViewSizeLimit { get; set; }
+ public Microsoft.AspNetCore.Http.CookieBuilder TempDataCookie { get; set; }
+ public Microsoft.AspNetCore.Components.Endpoints.TempDataProviderType TempDataProviderType { get; set; }
}
+ public sealed class BasePath : Microsoft.AspNetCore.Components.IComponent
+ {
+ public BasePath();
+ 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);
+ }
+ public enum TempDataProviderType
+ {
+ Cookie = 0,
+ SessionStorage = 1,
+ }
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# 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; }
}
public sealed class EditContext
{
+ [System.ObsoleteAttribute("Validate is obsolete. Use ValidateAsync instead.")]
public bool Validate();
+ public bool IsValidationFaulted();
+ public bool IsValidationFaulted(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier);
+ public bool IsValidationFaulted<TField>(System.Linq.Expressions.Expression<System.Func<TField>> accessor);
+ public bool IsValidationPending();
+ public bool IsValidationPending(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier);
+ public bool IsValidationPending<TField>(System.Linq.Expressions.Expression<System.Func<TField>> accessor);
+ public void RegisterAsyncFieldValidator(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier, System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task> validator);
+ public System.Threading.Tasks.Task<bool> ValidateAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
}
public static class EditContextDataAnnotationsExtensions
{
- [System.ObsoleteAttribute("Use EnableDataAnnotationsValidation instead.")]
- public static Microsoft.AspNetCore.Components.Forms.EditContext AddDataAnnotationsValidation(this Microsoft.AspNetCore.Components.Forms.EditContext editContext);
+ public static System.IDisposable EnableDataAnnotationsValidation(this Microsoft.AspNetCore.Components.Forms.EditContext editContext, System.IServiceProvider serviceProvider);
- public static System.IDisposable EnableDataAnnotationsValidation(this Microsoft.AspNetCore.Components.Forms.EditContext editContext, System.IServiceProvider serviceProvider);
- [System.ObsoleteAttribute("This API is obsolete and may be removed in future versions. Use the overload that accepts an IServiceProvider instead.")]
- public static System.IDisposable EnableDataAnnotationsValidation(this Microsoft.AspNetCore.Components.Forms.EditContext editContext);
}
public sealed class ValidationRequestedEventArgs : System.EventArgs
{
+ 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,18 @@
# Microsoft.AspNetCore.Components.Server

```diff
namespace Microsoft.AspNetCore.Components.Server
{
public class ServerComponentsEndpointOptions
{
+ public System.Action<Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions>? ConfigureConnection { get; set; }
}
}
namespace Microsoft.AspNetCore.Components.Server.Circuits
{
public sealed class Circuit
{
+ public System.Threading.Tasks.Task<bool> RequestCircuitPauseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
}
}
```
Loading