Skip to content
Open
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,15 @@
# API difference between .NET 10.0 Preview 7 and .NET 10.0 RC 1

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

* [Microsoft.AspNetCore](10.0-rc1_Microsoft.AspNetCore.md)
* [Microsoft.AspNetCore.Components](10.0-rc1_Microsoft.AspNetCore.Components.md)
* [Microsoft.AspNetCore.Connections.Abstractions](10.0-rc1_Microsoft.AspNetCore.Connections.Abstractions.md)
* [Microsoft.AspNetCore.Diagnostics](10.0-rc1_Microsoft.AspNetCore.Diagnostics.md)
* [Microsoft.AspNetCore.Hosting](10.0-rc1_Microsoft.AspNetCore.Hosting.md)
* [Microsoft.AspNetCore.Hosting.Abstractions](10.0-rc1_Microsoft.AspNetCore.Hosting.Abstractions.md)
* [Microsoft.AspNetCore.Http.Abstractions](10.0-rc1_Microsoft.AspNetCore.Http.Abstractions.md)
* [Microsoft.AspNetCore.HttpOverrides](10.0-rc1_Microsoft.AspNetCore.HttpOverrides.md)
* [Microsoft.AspNetCore.Mvc.Core](10.0-rc1_Microsoft.AspNetCore.Mvc.Core.md)
* [Microsoft.Extensions.Validation](10.0-rc1_Microsoft.Extensions.Validation.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Microsoft.AspNetCore.Components

```diff
namespace Microsoft.AspNetCore.Components
{
public class PersistentComponentState
{
+ public Microsoft.AspNetCore.Components.RestoringComponentStateSubscription RegisterOnRestoring(System.Action callback, Microsoft.AspNetCore.Components.RestoreOptions options);
}
public sealed class PersistentStateAttribute : Microsoft.AspNetCore.Components.CascadingParameterAttributeBase
{
+ public bool AllowUpdates { get; set; }
+ public Microsoft.AspNetCore.Components.RestoreBehavior RestoreBehavior { get; set; }
}
+ [System.Diagnostics.DebuggerDisplayAttribute("{GetDebuggerDisplay(),nq}")]
public sealed class RendererInfo
{
}
+ [System.FlagsAttribute]
+ public enum RestoreBehavior
+ {
+ Default = 0,
+ SkipInitialValue = 1,
+ SkipLastSnapshot = 2,
+ }
+ public sealed class RestoreContext
+ {
+ public static Microsoft.AspNetCore.Components.RestoreContext InitialValue { get; }
+ public static Microsoft.AspNetCore.Components.RestoreContext LastSnapshot { get; }
+ public static Microsoft.AspNetCore.Components.RestoreContext ValueUpdate { get; }
+ }
+ public readonly struct RestoreOptions
+ {
+ public RestoreOptions();
+ public bool AllowUpdates { get; init; }
+ public Microsoft.AspNetCore.Components.RestoreBehavior RestoreBehavior { get; init; }
+ }
+ public readonly struct RestoringComponentStateSubscription : System.IDisposable
+ {
+ public readonly void Dispose();
+ }
}
namespace Microsoft.AspNetCore.Components.Infrastructure
{
public class ComponentStatePersistenceManager
{
+ public System.Threading.Tasks.Task RestoreStateAsync(Microsoft.AspNetCore.Components.IPersistentComponentStateStore store, Microsoft.AspNetCore.Components.RestoreContext context);
}
}
namespace Microsoft.AspNetCore.Components.Rendering
{
public class ComponentState : System.IAsyncDisposable
{
+ protected internal Microsoft.AspNetCore.Components.RenderTree.Renderer Renderer { get; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Microsoft.AspNetCore.Connections.Abstractions

```diff
namespace Microsoft.AspNetCore.Connections
{
public interface IMemoryPoolFactory<T>
{
- System.Buffers.MemoryPool<T> Create();
+ System.Buffers.MemoryPool<T> Create(Microsoft.AspNetCore.Connections.MemoryPoolOptions? options = null);
}
+ public class MemoryPoolOptions
+ {
+ public MemoryPoolOptions();
+ public string? Owner { get; set; }
+ }
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Microsoft.AspNetCore.Diagnostics

```diff
namespace Microsoft.AspNetCore.Builder
{
public static class StatusCodePagesExtensions
{
- public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithReExecute(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathFormat, bool createScopeForErrors, string? queryFormat = null);
- public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithReExecute(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathFormat, string? queryFormat = null);
+ public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithReExecute(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathFormat, string queryFormat);
+ public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithReExecute(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathFormat, string? queryFormat = null, bool createScopeForStatusCodePages = false);
}
public class StatusCodePagesOptions
{
- public bool CreateScopeForErrors { get; set; }
+ public bool CreateScopeForStatusCodePages { get; set; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Microsoft.AspNetCore.Hosting.Abstractions

```diff
namespace Microsoft.AspNetCore.Hosting
{
+ [System.ObsoleteAttribute("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
public interface IWebHost : System.IDisposable
{
}
public interface IWebHostBuilder
{
+ [System.ObsoleteAttribute("IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
Microsoft.AspNetCore.Hosting.IWebHost Build();
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Microsoft.AspNetCore.Hosting

```diff
namespace Microsoft.AspNetCore.Hosting
{
+ [System.ObsoleteAttribute("WebHostBuilder is deprecated in favor of HostBuilder and WebApplicationBuilder. For more information, visit https://aka.ms/aspnet/deprecate/004.", DiagnosticId = "ASPDEPR004")]
public class WebHostBuilder : Microsoft.AspNetCore.Hosting.IWebHostBuilder
{
}
+ [System.ObsoleteAttribute("WebHostExtensions is obsolete. Use Host.CreateDefaultBuilder or WebApplication.CreateBuilder instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
public static class WebHostExtensions
{
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.AspNetCore.Http.Abstractions

```diff
namespace Microsoft.AspNetCore.Http
{
public static class HttpMethods
{
+ public static readonly string Query;
+ public static bool IsQuery(string method);
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Microsoft.AspNetCore.HttpOverrides

```diff
namespace Microsoft.AspNetCore.Builder
{
public class ForwardedHeadersOptions
{
+ [System.ObsoleteAttribute("Please use KnownIPNetworks instead. For more information, visit https://aka.ms/aspnet/deprecate/005.", DiagnosticId = "ASPDEPR005")]
public System.Collections.Generic.IList<Microsoft.AspNetCore.HttpOverrides.IPNetwork> KnownNetworks { get; }
+ public System.Collections.Generic.IList<System.Net.IPNetwork> KnownIPNetworks { get; }
}
}
namespace Microsoft.AspNetCore.HttpOverrides
{
+ [System.ObsoleteAttribute("Please use System.Net.IPNetwork instead. For more information, visit https://aka.ms/aspnet/deprecate/005.", DiagnosticId = "ASPDEPR005")]
public class IPNetwork
{
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Microsoft.AspNetCore.Mvc.Core

```diff
namespace Microsoft.AspNetCore.Mvc.ApiExplorer
{
public interface IApiRequestFormatMetadataProvider
{
- System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes(string contentType, System.Type objectType);
+ System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes(string? contentType, System.Type objectType);
}
public interface IApiResponseTypeMetadataProvider
{
- System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes(string contentType, System.Type objectType);
+ System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes(string? contentType, System.Type objectType);
}
}
namespace Microsoft.AspNetCore.Mvc.Formatters
{
public abstract class InputFormatter : Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider
{
- public virtual System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes(string contentType, System.Type objectType);
+ public virtual System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes(string? contentType, System.Type objectType);
}
public abstract class OutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseTypeMetadataProvider
{
- public virtual System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes(string contentType, System.Type objectType);
+ public virtual System.Collections.Generic.IReadOnlyList<string>? GetSupportedContentTypes(string? contentType, System.Type objectType);
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft.AspNetCore

```diff
namespace Microsoft.AspNetCore
{
+ [System.ObsoleteAttribute("WebHost is obsolete. Use HostBuilder or WebApplicationBuilder instead. For more information, visit https://aka.ms/aspnet/deprecate/008.", DiagnosticId = "ASPDEPR008")]
public static class WebHost
{
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.Extensions.Validation

```diff
namespace Microsoft.Extensions.Validation
{
+ [System.Diagnostics.CodeAnalysis.ExperimentalAttribute("ASP0029", UrlFormat = "https://aka.ms/aspnet/analyzer/{0}")]
+ public sealed class SkipValidationAttribute : System.Attribute
+ {
+ public SkipValidationAttribute();
+ }
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# API difference between .NET 10.0 Preview 7 and .NET 10.0 RC 1

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

* [System.Runtime](10.0-rc1_System.Runtime.md)
* [System.Runtime.InteropServices](10.0-rc1_System.Runtime.InteropServices.md)
* [System.Runtime.Intrinsics](10.0-rc1_System.Runtime.Intrinsics.md)
* [System.Runtime.Serialization.Xml](10.0-rc1_System.Runtime.Serialization.Xml.md)
* [System.Security.Cryptography](10.0-rc1_System.Security.Cryptography.md)
* [System.Xml.ReaderWriter](10.0-rc1_System.Xml.ReaderWriter.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# System.Runtime.InteropServices

```diff
namespace System.Runtime.InteropServices
{
public static class Marshal
{
+ public static System.Exception? GetExceptionForHR(int errorCode, in System.Guid iid, nint pUnk);
+ public static void ThrowExceptionForHR(int errorCode, in System.Guid iid, nint pUnk);
}
}
```
Loading