Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API diff between .NET 8 Preview 7 and .NET 8 RC 1 #8757

Merged
merged 5 commits into from
Sep 27, 2023
Merged
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,37 @@
# API Difference 8.0-preview7 vs 8.0-rc1

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

* [Microsoft.AspNetCore.Builder](8.0-rc1_Microsoft.AspNetCore.Builder.md)
* [Microsoft.AspNetCore.Components](8.0-rc1_Microsoft.AspNetCore.Components.md)
* [Microsoft.AspNetCore.Components.Discovery](8.0-rc1_Microsoft.AspNetCore.Components.Discovery.md)
* [Microsoft.AspNetCore.Components.Endpoints](8.0-rc1_Microsoft.AspNetCore.Components.Endpoints.md)
* [Microsoft.AspNetCore.Components.Endpoints.Infrastructure](8.0-rc1_Microsoft.AspNetCore.Components.Endpoints.Infrastructure.md)
* [Microsoft.AspNetCore.Components.Forms](8.0-rc1_Microsoft.AspNetCore.Components.Forms.md)
* [Microsoft.AspNetCore.Components.Infrastructure](8.0-rc1_Microsoft.AspNetCore.Components.Infrastructure.md)
* [Microsoft.AspNetCore.Components.Routing](8.0-rc1_Microsoft.AspNetCore.Components.Routing.md)
* [Microsoft.AspNetCore.Connections.Abstractions](8.0-rc1_Microsoft.AspNetCore.Connections.Abstractions.md)
* [Microsoft.AspNetCore.Http](8.0-rc1_Microsoft.AspNetCore.Http.md)
* [Microsoft.AspNetCore.Http.Connections](8.0-rc1_Microsoft.AspNetCore.Http.Connections.md)
* [Microsoft.AspNetCore.Http.Metadata](8.0-rc1_Microsoft.AspNetCore.Http.Metadata.md)
* [Microsoft.AspNetCore.HttpOverrides](8.0-rc1_Microsoft.AspNetCore.HttpOverrides.md)
* [Microsoft.AspNetCore.Mvc](8.0-rc1_Microsoft.AspNetCore.Mvc.md)
* [Microsoft.AspNetCore.Mvc.ApplicationModels](8.0-rc1_Microsoft.AspNetCore.Mvc.ApplicationModels.md)
* [Microsoft.AspNetCore.Mvc.Controllers](8.0-rc1_Microsoft.AspNetCore.Mvc.Controllers.md)
* [Microsoft.AspNetCore.Mvc.Filters](8.0-rc1_Microsoft.AspNetCore.Mvc.Filters.md)
* [Microsoft.AspNetCore.Mvc.ModelBinding](8.0-rc1_Microsoft.AspNetCore.Mvc.ModelBinding.md)
* [Microsoft.AspNetCore.Mvc.Razor](8.0-rc1_Microsoft.AspNetCore.Mvc.Razor.md)
* [Microsoft.AspNetCore.Mvc.RazorPages](8.0-rc1_Microsoft.AspNetCore.Mvc.RazorPages.md)
* [Microsoft.AspNetCore.Mvc.Rendering](8.0-rc1_Microsoft.AspNetCore.Mvc.Rendering.md)
* [Microsoft.AspNetCore.Mvc.TagHelpers](8.0-rc1_Microsoft.AspNetCore.Mvc.TagHelpers.md)
* [Microsoft.AspNetCore.Mvc.ViewFeatures](8.0-rc1_Microsoft.AspNetCore.Mvc.ViewFeatures.md)
* [Microsoft.AspNetCore.Routing](8.0-rc1_Microsoft.AspNetCore.Routing.md)
* [Microsoft.AspNetCore.Server.Kestrel.Core](8.0-rc1_Microsoft.AspNetCore.Server.Kestrel.Core.md)
* [Microsoft.AspNetCore.SignalR](8.0-rc1_Microsoft.AspNetCore.SignalR.md)
* [Microsoft.Extensions.DependencyInjection](8.0-rc1_Microsoft.Extensions.DependencyInjection.md)
* [Microsoft.Extensions.Diagnostics.HealthChecks](8.0-rc1_Microsoft.Extensions.Diagnostics.HealthChecks.md)
* [Microsoft.Extensions.Diagnostics.Metrics](8.0-rc1_Microsoft.Extensions.Diagnostics.Metrics.md)
* [Microsoft.Extensions.Diagnostics.Metrics.Configuration](8.0-rc1_Microsoft.Extensions.Diagnostics.Metrics.Configuration.md)
* [Microsoft.Extensions.Hosting](8.0-rc1_Microsoft.Extensions.Hosting.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Microsoft.AspNetCore.Builder

``` diff
namespace Microsoft.AspNetCore.Builder {
public class ForwardedHeadersOptions {
+ public string ForwardedPrefixHeaderName { get; set; }
+ public string OriginalPrefixHeaderName { get; set; }
}
- public class RazorComponentEndpointConventionBuilder : IEndpointConventionBuilder {
- public ComponentApplicationBuilder ApplicationBuilder { get; }
- public void Add(Action<EndpointBuilder> convention);
- public RazorComponentEndpointConventionBuilder AddServerRenderMode();
- public RazorComponentEndpointConventionBuilder AddWebAssemblyRenderMode();
- public void Finally(Action<EndpointBuilder> finallyConvention);
- }
+ public sealed class RazorComponentsEndpointConventionBuilder : IEndpointConventionBuilder {
+ public void Add(Action<EndpointBuilder> convention);
+ public void AddRenderMode(IComponentRenderMode renderMode);
+ public RazorComponentsEndpointConventionBuilder AddServerRenderMode();
+ public void Finally(Action<EndpointBuilder> finallyConvention);
+ }
+ public static class RazorComponentsEndpointConventionBuilderExtensions {
+ public static RazorComponentsEndpointConventionBuilder AddAdditionalAssemblies(this RazorComponentsEndpointConventionBuilder builder, params Assembly[] assemblies);
+ }
public static class RazorComponentsEndpointRouteBuilderExtensions {
- public static RazorComponentEndpointConventionBuilder MapRazorComponents<TRootComponent>(this IEndpointRouteBuilder endpoints);
+ public static RazorComponentsEndpointConventionBuilder MapRazorComponents<TRootComponent>(this IEndpointRouteBuilder endpoints);
}
public static class RoutingEndpointConventionBuilderExtensions {
+ public static TBuilder WithFormMappingOptions<TBuilder>(this TBuilder builder, int? maxCollectionSize = default(int?), int? maxRecursionDepth = default(int?), int? maxKeySize = default(int?)) where TBuilder : IEndpointConventionBuilder;
+ public static TBuilder WithFormOptions<TBuilder>(this TBuilder builder, bool? bufferBody = default(bool?), int? memoryBufferThreshold = default(int?), long? bufferBodyLengthLimit = default(long?), int? valueCountLimit = default(int?), int? keyLengthLimit = default(int?), int? valueLengthLimit = default(int?), int? multipartBoundaryLengthLimit = default(int?), int? multipartHeadersCountLimit = default(int?), int? multipartHeadersLengthLimit = default(int?), long? multipartBodyLengthLimit = default(long?)) where TBuilder : IEndpointConventionBuilder;
+ public static TBuilder WithOrder<TBuilder>(this TBuilder builder, int order) where TBuilder : IEndpointConventionBuilder;
}
public sealed class WebApplicationBuilder : IHostApplicationBuilder {
+ public IMetricsBuilder Metrics { get; }
}
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Microsoft.AspNetCore.Components.Discovery

``` diff
-namespace Microsoft.AspNetCore.Components.Discovery {
- [DebuggerDisplayAttribute("{GetDebuggerDisplay(),nq}")]
- public class AssemblyComponentLibraryDescriptor {
- public AssemblyComponentLibraryDescriptor(string name, IReadOnlyList<PageComponentBuilder> pages, IReadOnlyList<ComponentBuilder> components);
- public string AssemblyName { get; }
- public IReadOnlyList<ComponentBuilder> Components { get; }
- public IReadOnlyList<PageComponentBuilder> Pages { get; }
- }
- public class ComponentApplicationBuilder {
- public ComponentApplicationBuilder();
- public void AddLibrary(AssemblyComponentLibraryDescriptor libraryBuilder);
- public void Combine(ComponentApplicationBuilder other);
- public void Exclude(ComponentApplicationBuilder builder);
- public static ComponentApplicationBuilder? GetBuilder<TComponent>();
- public bool HasLibrary(string assemblyName);
- public void RemoveLibrary(string assembly);
- }
- public class ComponentBuilder : IEquatable<ComponentBuilder?> {
- public ComponentBuilder();
- public required string AssemblyName { get; set; }
- public required Type ComponentType { get; set; }
- public RenderModeAttribute? RenderMode { get; set; }
- public bool Equals(ComponentBuilder? other);
- public override bool Equals(object? obj);
- public override int GetHashCode();
- }
- [DebuggerDisplayAttribute("{GetDebuggerDisplay(),nq}")]
- public class PageComponentBuilder : IEquatable<PageComponentBuilder?> {
- public PageComponentBuilder();
- public required string AssemblyName { get; set; }
- public required Type PageType { get; set; }
- public required IReadOnlyList<string> RouteTemplates { get; set; }
- public bool Equals(PageComponentBuilder? other);
- public override bool Equals(object? obj);
- public override int GetHashCode();
- public bool HasSource(string source);
- }
-}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.AspNetCore.Components.Endpoints.Infrastructure

``` diff
+namespace Microsoft.AspNetCore.Components.Endpoints.Infrastructure {
+ public abstract class RenderModeEndpointProvider {
+ protected RenderModeEndpointProvider();
+ public abstract IEnumerable<RouteEndpointBuilder> GetEndpointBuilders(IComponentRenderMode renderMode, IApplicationBuilder applicationBuilder);
+ public abstract bool Supports(IComponentRenderMode renderMode);
+ }
+}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Microsoft.AspNetCore.Components.Endpoints

``` diff
namespace Microsoft.AspNetCore.Components.Endpoints {
- public class ComponentTypeMetadata
+ public sealed class ComponentTypeMetadata
+ public interface IRazorComponentEndpointInvoker {
+ Task Render(HttpContext context);
+ }
- public interface IRazorComponentsBuilder {
- IServiceCollection Services { get; }
- }
- public class RazorComponentDataSourceOptions {
- public RazorComponentDataSourceOptions();
- public bool UseDeclaredRenderModes { get; set; }
- }
+ public sealed class RazorComponentsOptions {
+ public RazorComponentsOptions();
+ public int MaxFormMappingCollectionSize { get; set; }
+ public int MaxFormMappingErrorCount { get; set; }
+ public int MaxFormMappingKeySize { get; set; }
+ public int MaxFormMappingRecursionDepth { get; set; }
+ }
- public abstract class RenderModeEndpointProvider {
- protected RenderModeEndpointProvider();
- public abstract IEnumerable<RouteEndpointBuilder> GetEndpointBuilders(IComponentRenderMode renderMode, IApplicationBuilder applicationBuilder);
- public abstract bool Supports(IComponentRenderMode renderMode);
- }
- public class RootComponentMetadata
+ public sealed class RootComponentMetadata
- public sealed class WebAssemblyComponentsEndpointOptions {
- public WebAssemblyComponentsEndpointOptions();
- public PathString PathPrefix { get; set; }
- }
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft.AspNetCore.Components.Forms

``` diff
namespace Microsoft.AspNetCore.Components.Forms {
public sealed class EditContext {
+ public bool IsValid(in FieldIdentifier fieldIdentifier);
+ public bool IsValid(Expression<Func<object>> accessor);
}
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.AspNetCore.Components.Infrastructure

``` diff
namespace Microsoft.AspNetCore.Components.Infrastructure {
- [AttributeUsageAttribute(1, AllowMultiple=false)]
- public abstract class RazorComponentApplicationAttribute : Attribute, IRazorComponentApplication {
- protected RazorComponentApplicationAttribute();
- public abstract ComponentApplicationBuilder GetBuilder();
- }
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Microsoft.AspNetCore.Components.Routing

``` diff
namespace Microsoft.AspNetCore.Components.Routing {
public class Router : IComponent, IDisposable, IHandleAfterRender {
- [EditorRequiredAttribute]
- [ParameterAttribute]
- public RenderFragment NotFound { get; set; }
+ [ParameterAttribute]
+ public RenderFragment NotFound { get; set; }
}
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Microsoft.AspNetCore.Components

``` diff
namespace Microsoft.AspNetCore.Components {
public abstract class NavigationManager {
+ public virtual void Refresh(bool forceReload = false);
}
public sealed class RouteData {
+ public string? Template { get; set; }
}
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Microsoft.AspNetCore.Connections.Abstractions

``` diff
namespace Microsoft.AspNetCore.Connections.Abstractions {
- public interface IReconnectFeature {
- Action NotifyOnReconnect { get; set; }
- }
+ [RequiresPreviewFeaturesAttribute("IStatefulReconnectFeature is a preview interface")]
+ public interface IStatefulReconnectFeature {
+ void DisableReconnect();
+ void OnReconnected(Func<PipeWriter, Task> notifyOnReconnect);
+ }
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Microsoft.AspNetCore.Http.Connections

``` diff
namespace Microsoft.AspNetCore.Http.Connections {
public class HttpConnectionDispatcherOptions {
- public bool AllowAcks { get; set; }
+ public bool AllowStatefulReconnects { get; set; }
}
public class NegotiationResponse {
- public bool UseAcking { get; set; }
+ public bool UseStatefulReconnect { get; set; }
}
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Microsoft.AspNetCore.Http.Metadata

``` diff
namespace Microsoft.AspNetCore.Http.Metadata {
+ public class FormMappingOptionsMetadata {
+ public FormMappingOptionsMetadata(int? maxCollectionSize = default(int?), int? maxRecursionDepth = default(int?), int? maxKeySize = default(int?));
+ public int? MaxCollectionSize { get; }
+ public int? MaxKeySize { get; }
+ public int? MaxRecursionDepth { get; }
+ }
+ public interface IFormOptionsMetadata {
+ bool? BufferBody { get; }
+ long? BufferBodyLengthLimit { get; }
+ int? KeyLengthLimit { get; }
+ int? MemoryBufferThreshold { get; }
+ long? MultipartBodyLengthLimit { get; }
+ int? MultipartBoundaryLengthLimit { get; }
+ int? MultipartHeadersCountLimit { get; }
+ int? MultipartHeadersLengthLimit { get; }
+ int? ValueCountLimit { get; }
+ int? ValueLengthLimit { get; }
+ }
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Microsoft.AspNetCore.Http

``` diff
namespace Microsoft.AspNetCore.Http {
- [DebuggerDisplayAttribute("Count = {Count}")]
- [DebuggerTypeProxyAttribute(typeof(HeaderDictionary.HeaderDictionaryDebugView))]
- public class HeaderDictionary : ICollection<KeyValuePair<string, StringValues>>, IDictionary<string, StringValues>, IEnumerable, IEnumerable<KeyValuePair<string, StringValues>>, IHeaderDictionary
+ [DebuggerDisplayAttribute("{DebuggerToString(),nq}")]
+ [DebuggerTypeProxyAttribute(typeof(HeaderDictionary.HeaderDictionaryDebugView))]
+ public class HeaderDictionary : ICollection<KeyValuePair<string, StringValues>>, IDictionary<string, StringValues>, IEnumerable, IEnumerable<KeyValuePair<string, StringValues>>, IHeaderDictionary
- public class HttpContextAccessor : IHttpContextAccessor
+ [DebuggerDisplayAttribute("HttpContext = {HttpContext}")]
+ public class HttpContextAccessor : IHttpContextAccessor
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Microsoft.AspNetCore.HttpOverrides

``` diff
namespace Microsoft.AspNetCore.HttpOverrides {
[FlagsAttribute]
public enum ForwardedHeaders {
- All = 7,
+ All = 15,
+ XForwardedPrefix = 8,
}
public static class ForwardedHeadersDefaults {
+ public static string XForwardedPrefixHeaderName { get; }
+ public static string XOriginalPrefixHeaderName { get; }
}
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Microsoft.AspNetCore.Mvc.ApplicationModels

``` diff
namespace Microsoft.AspNetCore.Mvc.ApplicationModels {
- [DebuggerDisplayAttribute("ApplicationModel: Controllers: {Controllers.Count}, Filters: {Filters.Count}")]
- public class ApplicationModel : IApiExplorerModel, IFilterModel, IPropertyModel
+ [DebuggerDisplayAttribute("Type = {GetType().Name}, Controllers = {Controllers.Count}, Filters = {Filters.Count}")]
+ public class ApplicationModel : IApiExplorerModel, IFilterModel, IPropertyModel
- [DebuggerDisplayAttribute("PageHandlerModel: Name={Name}")]
- public class PageHandlerModel : ICommonModel, IPropertyModel
+ [DebuggerDisplayAttribute("Type = {GetType().Name}, Name = {Name}")]
+ public class PageHandlerModel : ICommonModel, IPropertyModel
- [DebuggerDisplayAttribute("PageParameterModel: Name={ParameterName}")]
- public class PageParameterModel : ParameterModelBase, IBindingModel, ICommonModel, IPropertyModel
+ [DebuggerDisplayAttribute("Type = {GetType().Name}, Name = {ParameterName}")]
+ public class PageParameterModel : ParameterModelBase, IBindingModel, ICommonModel, IPropertyModel
- [DebuggerDisplayAttribute("PagePropertyModel: Name={PropertyName}")]
- public class PagePropertyModel : ParameterModelBase, ICommonModel, IPropertyModel
+ [DebuggerDisplayAttribute("Type = {GetType().Name}, Name = {PropertyName}")]
+ public class PagePropertyModel : ParameterModelBase, ICommonModel, IPropertyModel
- [DebuggerDisplayAttribute("ParameterModel: Name={ParameterName}")]
- public class ParameterModel : ParameterModelBase, ICommonModel, IPropertyModel
+ [DebuggerDisplayAttribute("Type = {GetType().Name}, Name = {ParameterName}")]
+ public class ParameterModel : ParameterModelBase, ICommonModel, IPropertyModel
- [DebuggerDisplayAttribute("PropertyModel: Name={PropertyName}")]
- public class PropertyModel : ParameterModelBase, IBindingModel, ICommonModel, IPropertyModel
+ [DebuggerDisplayAttribute("Type = {GetType().Name}, Name = {PropertyName}")]
+ public class PropertyModel : ParameterModelBase, IBindingModel, ICommonModel, IPropertyModel
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft.AspNetCore.Mvc.Controllers

``` diff
namespace Microsoft.AspNetCore.Mvc.Controllers {
- [DebuggerDisplayAttribute("{DisplayName}")]
- public class ControllerActionDescriptor : ActionDescriptor
+ [DebuggerDisplayAttribute("{DisplayName,nq}")]
+ public class ControllerActionDescriptor : ActionDescriptor
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft.AspNetCore.Mvc.Filters

``` diff
namespace Microsoft.AspNetCore.Mvc.Filters {
- [DebuggerDisplayAttribute("FilterItem: {Filter}")]
- public class FilterItem
+ [DebuggerDisplayAttribute("Filter = {Filter}")]
+ public class FilterItem
}
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Microsoft.AspNetCore.Mvc.ModelBinding

``` diff
namespace Microsoft.AspNetCore.Mvc.ModelBinding {
public class BindingInfo {
+ public object ServiceKey { get; set; }
}
- [DebuggerDisplayAttribute("Source: {DisplayName}")]
- public class BindingSource : IEquatable<BindingSource?>
+ [DebuggerDisplayAttribute("Source = {DisplayName}")]
+ public class BindingSource : IEquatable<BindingSource?>
- public class ModelStateDictionary : IEnumerable, IEnumerable<KeyValuePair<string, ModelStateEntry?>>, IReadOnlyCollection<KeyValuePair<string, ModelStateEntry?>>, IReadOnlyDictionary<string, ModelStateEntry?>
+ [DebuggerDisplayAttribute("Entries = {Count}, IsValid = {IsValid}")]
+ [DebuggerTypeProxyAttribute(typeof(ModelStateDictionary.ModelStateDictionaryDebugView))]
+ public class ModelStateDictionary : IEnumerable, IEnumerable<KeyValuePair<string, ModelStateEntry?>>, IReadOnlyCollection<KeyValuePair<string, ModelStateEntry?>>, IReadOnlyDictionary<string, ModelStateEntry?>
}
```

Loading
Loading