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,13 @@
# API difference between .NET 11.0 Preview 7 and .NET 11.0 RC 1

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

* [Microsoft.AspNetCore.Components](11.0-rc1_Microsoft.AspNetCore.Components.md)
* [Microsoft.AspNetCore.Components.Endpoints](11.0-rc1_Microsoft.AspNetCore.Components.Endpoints.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.Connections.Abstractions](11.0-rc1_Microsoft.AspNetCore.Connections.Abstractions.md)
* [Microsoft.AspNetCore.Http.Connections](11.0-rc1_Microsoft.AspNetCore.Http.Connections.md)
* [Microsoft.AspNetCore.Server.Kestrel.Core](11.0-rc1_Microsoft.AspNetCore.Server.Kestrel.Core.md)
* [Microsoft.Extensions.Validation](11.0-rc1_Microsoft.Extensions.Validation.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 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 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; }
+ }
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.AspNetCore.Components.Server

```diff
namespace Microsoft.AspNetCore.Components.Server
{
public sealed class CircuitOptions
{
+ [System.Diagnostics.CodeAnalysis.ExperimentalAttribute("ASPNETCORE9004", UrlFormat = "https://aka.ms/aspnet/analyzer/{0}")]
+ public System.Collections.Generic.IList<System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver> JsonTypeInfoResolvers { get; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Microsoft.AspNetCore.Components.Web

```diff
namespace Microsoft.AspNetCore.Components.Web
{
+ [Microsoft.AspNetCore.Components.AcceptsAssetPathAttribute("audio", "src")]
+ [Microsoft.AspNetCore.Components.AcceptsAssetPathAttribute("img", "src")]
+ [Microsoft.AspNetCore.Components.AcceptsAssetPathAttribute("input", "src")]
+ [Microsoft.AspNetCore.Components.AcceptsAssetPathAttribute("link", "href")]
+ [Microsoft.AspNetCore.Components.AcceptsAssetPathAttribute("script", "src")]
+ [Microsoft.AspNetCore.Components.AcceptsAssetPathAttribute("source", "src")]
+ [Microsoft.AspNetCore.Components.AcceptsAssetPathAttribute("track", "src")]
+ [Microsoft.AspNetCore.Components.AcceptsAssetPathAttribute("video", "poster")]
+ [Microsoft.AspNetCore.Components.AcceptsAssetPathAttribute("video", "src")]
+ public static class AssetPathAttributes
+ {
+ }
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Microsoft.AspNetCore.Components

```diff
namespace Microsoft.AspNetCore.Components
{
+ public sealed class AcceptsAssetPathAttribute : System.Attribute
+ {
+ public AcceptsAssetPathAttribute(string elementName, string attributeName);
+ public string AttributeName { get; }
+ public string ElementName { get; }
+ }
+ public sealed class AssetPathAttribute : System.Attribute
+ {
+ public AssetPathAttribute();
+ }
}
namespace Microsoft.AspNetCore.Components.Rendering
{
public sealed class RenderTreeBuilder : System.IDisposable
{
+ [System.Diagnostics.CodeAnalysis.ExperimentalAttribute("ASP0032", UrlFormat = "https://aka.ms/aspnet/analyzer/{0}")]
public void SetAttributeValue(int frameIndex, object? value);
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft.AspNetCore.Connections.Abstractions

```diff
namespace Microsoft.AspNetCore.Connections.Features
{
public interface IConnectionUserRefreshFeature
{
+ System.Func<System.Security.Claims.ClaimsPrincipal, bool>? OnUserRefreshing { get; set; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.AspNetCore.Http.Connections

```diff
namespace Microsoft.AspNetCore.Http.Connections
{
public class HttpConnectionDispatcherOptions
{
- public System.Func<Microsoft.AspNetCore.Http.Connections.AuthenticationRefreshContext, System.Threading.Tasks.ValueTask<bool>>? OnAuthenticationRefresh { get; set; }
+ public System.Func<Microsoft.AspNetCore.Http.Connections.AuthenticationRefreshContext, System.Threading.Tasks.Task<bool>>? OnAuthenticationRefresh { get; set; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Microsoft.AspNetCore.Server.Kestrel.Core

```diff
+ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls
+ {
+ [System.Diagnostics.CodeAnalysis.ExperimentalAttribute("ASPNETCORE_DIRECTTLS_001", UrlFormat = "https://aka.ms/aspnetcore/directtls")]
+ public sealed class DirectTlsEndpoint : System.Net.IPEndPoint
+ {
+ public DirectTlsEndpoint(System.Net.IPAddress address, int port, Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.DirectTlsEndpointOptions options) : base(default(long), default(int));
+ public DirectTlsEndpoint(System.Net.IPAddress address, int port) : base(default(long), default(int));
+ public DirectTlsEndpoint(System.Net.IPEndPoint endpoint, Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.DirectTlsEndpointOptions options) : base(default(long), default(int));
+ public Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.DirectTlsEndpointOptions Options { get; }
+ }
+ [System.Diagnostics.CodeAnalysis.ExperimentalAttribute("ASPNETCORE_DIRECTTLS_001", UrlFormat = "https://aka.ms/aspnetcore/directtls")]
+ public sealed class DirectTlsEndpointOptions
+ {
+ public DirectTlsEndpointOptions();
+ public Microsoft.AspNetCore.Server.Kestrel.Https.ClientCertificateMode ClientCertificateMode { get; set; }
+ public System.Func<System.Security.Cryptography.X509Certificates.X509Certificate2, System.Security.Cryptography.X509Certificates.X509Chain?, System.Net.Security.SslPolicyErrors, bool>? ClientCertificateValidation { get; set; }
+ public System.TimeSpan HandshakeTimeout { get; set; }
+ public System.Security.Cryptography.X509Certificates.X509Certificate2? ServerCertificate { get; set; }
+ public System.Func<Microsoft.AspNetCore.Connections.ConnectionContext?, string?, System.Security.Cryptography.X509Certificates.X509Certificate2?>? ServerCertificateSelector { get; set; }
+ public System.Security.Authentication.SslProtocols SslProtocols { get; set; }
+ public System.Action<Microsoft.AspNetCore.Connections.ConnectionContext, System.Buffers.ReadOnlySequence<byte>>? TlsClientHelloBytesCallback { get; set; }
+ public int? WorkerCount { get; set; }
+ }
+ }
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Microsoft.Extensions.Validation

```diff
namespace Microsoft.Extensions.Validation
{
- public sealed class ValidationMessageKeyContext
- {
- public ValidationMessageKeyContext();
- public required System.Type DeclaringType { get; init; }
- public required string MemberName { get; init; }
- public required System.Type ValidatorType { get; init; }
- }
public class ValidationOptions
{
- public System.Func<Microsoft.Extensions.Validation.ValidationMessageKeyContext, string?>? MessageKeyProvider { get; set; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# API difference between .NET 11.0 Preview 7 and .NET 11.0 RC 1

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

* [Microsoft.Extensions.Options](11.0-rc1_Microsoft.Extensions.Options.md)
* [System.Collections](11.0-rc1_System.Collections.md)
* [System.Diagnostics.Process](11.0-rc1_System.Diagnostics.Process.md)
* [System.IO.Compression](11.0-rc1_System.IO.Compression.md)
* [System.Net.NetworkInformation](11.0-rc1_System.Net.NetworkInformation.md)
* [System.Net.Security](11.0-rc1_System.Net.Security.md)
* [System.Security.Cryptography](11.0-rc1_System.Security.Cryptography.md)
* [System.Text.Json](11.0-rc1_System.Text.Json.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Microsoft.Extensions.Options

```diff
namespace Microsoft.Extensions.Options
{
public class AsyncValidateOptions<TOptions> : Microsoft.Extensions.Options.IAsyncValidateOptions<TOptions>, Microsoft.Extensions.Options.IValidateOptions<TOptions> where TOptions : class
{
+ public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string? name, TOptions options);
}
public class AsyncValidateOptions<TOptions, TDep> : Microsoft.Extensions.Options.IAsyncValidateOptions<TOptions>, Microsoft.Extensions.Options.IValidateOptions<TOptions> where TOptions : class
{
+ public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string? name, TOptions options);
}
public class AsyncValidateOptions<TOptions, TDep1, TDep2> : Microsoft.Extensions.Options.IAsyncValidateOptions<TOptions>, Microsoft.Extensions.Options.IValidateOptions<TOptions> where TOptions : class
{
+ public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string? name, TOptions options);
}
public class AsyncValidateOptions<TOptions, TDep1, TDep2, TDep3> : Microsoft.Extensions.Options.IAsyncValidateOptions<TOptions>, Microsoft.Extensions.Options.IValidateOptions<TOptions> where TOptions : class
{
+ public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string? name, TOptions options);
}
public class AsyncValidateOptions<TOptions, TDep1, TDep2, TDep3, TDep4> : Microsoft.Extensions.Options.IAsyncValidateOptions<TOptions>, Microsoft.Extensions.Options.IValidateOptions<TOptions> where TOptions : class
{
+ public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string? name, TOptions options);
}
public class AsyncValidateOptions<TOptions, TDep1, TDep2, TDep3, TDep4, TDep5> : Microsoft.Extensions.Options.IAsyncValidateOptions<TOptions>, Microsoft.Extensions.Options.IValidateOptions<TOptions> where TOptions : class
{
+ public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string? name, TOptions options);
}
+ [System.ObsoleteAttribute("Implement IAsyncStartupValidator instead.", DiagnosticId = "SYSLIB0066", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public interface IStartupValidator
{
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# System.Collections

```diff
namespace System.Collections
{
public sealed class BitArray : System.Collections.ICollection, System.Collections.IEnumerable, System.ICloneable
{
+ public BitArray(System.ReadOnlySpan<bool> values);
+ public BitArray(System.ReadOnlySpan<byte> bytes);
+ public BitArray(System.ReadOnlySpan<int> values);
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# System.Diagnostics.Process

```diff
namespace System.Diagnostics
{
public class Process : System.ComponentModel.Component, System.IDisposable
{
+ public bool Signal(System.Runtime.InteropServices.PosixSignal signal);
+ public bool TryWaitForExitStatus(System.TimeSpan timeout, out System.Diagnostics.ProcessExitStatus? exitStatus);
+ public System.Diagnostics.ProcessExitStatus WaitForExitStatus();
+ public System.Threading.Tasks.Task<System.Diagnostics.ProcessExitStatus> WaitForExitStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# System.IO.Compression

```diff
namespace System.IO.Compression
{
public sealed class DeflateDecoder : System.IDisposable
{
+ public void Reset();
}
public sealed class DeflateEncoder : System.IDisposable
{
+ public void Reset();
}
public sealed class GZipDecoder : System.IDisposable
{
+ public void Reset();
}
public sealed class GZipEncoder : System.IDisposable
{
+ public void Reset();
}
public sealed class ZLibDecoder : System.IDisposable
{
+ public void Reset();
}
public sealed class ZLibEncoder : System.IDisposable
{
+ public void Reset();
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# System.Net.NetworkInformation

```diff
namespace System.Net.NetworkInformation
{
public class NetworkChange
{
+ public static bool IsSupported { get; }
}
}
```
Loading