-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API diff between .NET 8.0 Preview 4 and .NET 8 Preview 5 (#8546)
* readme * Microsoft.AspNetCore.App * Microsoft.NETCore.App * Microsoft.WindowsDesktop.App * Fix System.Windows.Forms incomplete EII namespaces
- Loading branch information
1 parent
b548bbc
commit 2a3a6e4
Showing
62 changed files
with
2,078 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
...se-notes/8.0/preview/api-diff/preview5/Microsoft.AspNetCore.App/8.0-preview5.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# API Difference 8.0-preview4 vs 8.0-preview5 | ||
|
||
API listing follows standard diff formatting. | ||
Lines preceded by a '+' are additions and a '-' indicates removal. | ||
|
||
* [Microsoft.AspNetCore.Authentication](8.0-preview5_Microsoft.AspNetCore.Authentication.md) | ||
* [Microsoft.AspNetCore.Authentication.Cookies](8.0-preview5_Microsoft.AspNetCore.Authentication.Cookies.md) | ||
* [Microsoft.AspNetCore.Authentication.OAuth](8.0-preview5_Microsoft.AspNetCore.Authentication.OAuth.md) | ||
* [Microsoft.AspNetCore.Authorization](8.0-preview5_Microsoft.AspNetCore.Authorization.md) | ||
* [Microsoft.AspNetCore.Builder](8.0-preview5_Microsoft.AspNetCore.Builder.md) | ||
* [Microsoft.AspNetCore.Components](8.0-preview5_Microsoft.AspNetCore.Components.md) | ||
* [Microsoft.AspNetCore.Components.Discovery](8.0-preview5_Microsoft.AspNetCore.Components.Discovery.md) | ||
* [Microsoft.AspNetCore.Components.Endpoints](8.0-preview5_Microsoft.AspNetCore.Components.Endpoints.md) | ||
* [Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure](8.0-preview5_Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure.md) | ||
* [Microsoft.AspNetCore.Components.Infrastructure](8.0-preview5_Microsoft.AspNetCore.Components.Infrastructure.md) | ||
* [Microsoft.AspNetCore.Components.Rendering](8.0-preview5_Microsoft.AspNetCore.Components.Rendering.md) | ||
* [Microsoft.AspNetCore.Components.RenderTree](8.0-preview5_Microsoft.AspNetCore.Components.RenderTree.md) | ||
* [Microsoft.AspNetCore.Components.Routing](8.0-preview5_Microsoft.AspNetCore.Components.Routing.md) | ||
* [Microsoft.AspNetCore.Components.Web](8.0-preview5_Microsoft.AspNetCore.Components.Web.md) | ||
* [Microsoft.AspNetCore.Connections](8.0-preview5_Microsoft.AspNetCore.Connections.md) | ||
* [Microsoft.AspNetCore.Connections.Abstractions](8.0-preview5_Microsoft.AspNetCore.Connections.Abstractions.md) | ||
* [Microsoft.AspNetCore.Cors](8.0-preview5_Microsoft.AspNetCore.Cors.md) | ||
* [Microsoft.AspNetCore.DataProtection.XmlEncryption](8.0-preview5_Microsoft.AspNetCore.DataProtection.XmlEncryption.md) | ||
* [Microsoft.AspNetCore.Diagnostics](8.0-preview5_Microsoft.AspNetCore.Diagnostics.md) | ||
* [Microsoft.AspNetCore.Http](8.0-preview5_Microsoft.AspNetCore.Http.md) | ||
* [Microsoft.AspNetCore.Http.Connections](8.0-preview5_Microsoft.AspNetCore.Http.Connections.md) | ||
* [Microsoft.AspNetCore.Http.Features](8.0-preview5_Microsoft.AspNetCore.Http.Features.md) | ||
* [Microsoft.AspNetCore.HttpLogging](8.0-preview5_Microsoft.AspNetCore.HttpLogging.md) | ||
* [Microsoft.AspNetCore.Identity](8.0-preview5_Microsoft.AspNetCore.Identity.md) | ||
* [Microsoft.AspNetCore.Mvc](8.0-preview5_Microsoft.AspNetCore.Mvc.md) | ||
* [Microsoft.AspNetCore.Routing](8.0-preview5_Microsoft.AspNetCore.Routing.md) | ||
* [Microsoft.AspNetCore.Server.HttpSys](8.0-preview5_Microsoft.AspNetCore.Server.HttpSys.md) | ||
* [Microsoft.AspNetCore.Session](8.0-preview5_Microsoft.AspNetCore.Session.md) | ||
* [Microsoft.AspNetCore.SignalR.Protocol](8.0-preview5_Microsoft.AspNetCore.SignalR.Protocol.md) | ||
* [Microsoft.Extensions.DependencyInjection](8.0-preview5_Microsoft.Extensions.DependencyInjection.md) | ||
* [Microsoft.Extensions.Diagnostics.Metrics](8.0-preview5_Microsoft.Extensions.Diagnostics.Metrics.md) | ||
|
13 changes: 13 additions & 0 deletions
13
...soft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Authentication.Cookies.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Microsoft.AspNetCore.Authentication.Cookies | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Authentication.Cookies { | ||
public class CookieAuthenticationHandler : SignInAuthenticationHandler<CookieAuthenticationOptions> { | ||
+ public CookieAuthenticationHandler(IOptionsMonitor<CookieAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder); | ||
- public CookieAuthenticationHandler(IOptionsMonitor<CookieAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
+ [ObsoleteAttribute("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")] | ||
+ public CookieAuthenticationHandler(IOptionsMonitor<CookieAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
} | ||
} | ||
``` | ||
|
13 changes: 13 additions & 0 deletions
13
...rosoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Authentication.OAuth.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Microsoft.AspNetCore.Authentication.OAuth | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Authentication.OAuth { | ||
public class OAuthHandler<TOptions> : RemoteAuthenticationHandler<TOptions> where TOptions : OAuthOptions, new() { | ||
+ public OAuthHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder); | ||
- public OAuthHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
+ [ObsoleteAttribute("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")] | ||
+ public OAuthHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
} | ||
} | ||
``` | ||
|
54 changes: 54 additions & 0 deletions
54
...w5/Microsoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Authentication.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Microsoft.AspNetCore.Authentication | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Authentication { | ||
+ public class AuthenticationFailureException : Exception { | ||
+ public AuthenticationFailureException(string message); | ||
+ public AuthenticationFailureException(string message, Exception innerException); | ||
+ } | ||
public abstract class AuthenticationHandler<TOptions> : IAuthenticationHandler where TOptions : AuthenticationSchemeOptions, new() { | ||
+ protected AuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder); | ||
- protected AuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
+ [ObsoleteAttribute("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")] | ||
+ protected AuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
- protected ISystemClock Clock { get; } | ||
+ [ObsoleteAttribute("ISystemClock is obsolete, use TimeProvider instead.")] | ||
+ protected ISystemClock Clock { get; } | ||
+ protected TimeProvider TimeProvider { get; } | ||
} | ||
public class AuthenticationSchemeOptions { | ||
+ public TimeProvider TimeProvider { get; set; } | ||
} | ||
- public interface ISystemClock | ||
+ [ObsoleteAttribute("Use TimeProvider instead.")] | ||
+ public interface ISystemClock | ||
public class PolicySchemeHandler : SignInAuthenticationHandler<PolicySchemeOptions> { | ||
+ public PolicySchemeHandler(IOptionsMonitor<PolicySchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder); | ||
- public PolicySchemeHandler(IOptionsMonitor<PolicySchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
+ [ObsoleteAttribute("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")] | ||
+ public PolicySchemeHandler(IOptionsMonitor<PolicySchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
} | ||
public abstract class RemoteAuthenticationHandler<TOptions> : AuthenticationHandler<TOptions>, IAuthenticationHandler, IAuthenticationRequestHandler where TOptions : RemoteAuthenticationOptions, new() { | ||
+ protected RemoteAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder); | ||
- protected RemoteAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
+ [ObsoleteAttribute("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")] | ||
+ protected RemoteAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
} | ||
public abstract class SignInAuthenticationHandler<TOptions> : SignOutAuthenticationHandler<TOptions>, IAuthenticationHandler, IAuthenticationSignInHandler, IAuthenticationSignOutHandler where TOptions : AuthenticationSchemeOptions, new() { | ||
+ public SignInAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder); | ||
- public SignInAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
+ [ObsoleteAttribute("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")] | ||
+ public SignInAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
} | ||
public abstract class SignOutAuthenticationHandler<TOptions> : AuthenticationHandler<TOptions>, IAuthenticationHandler, IAuthenticationSignOutHandler where TOptions : AuthenticationSchemeOptions, new() { | ||
+ public SignOutAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder); | ||
- public SignOutAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
+ [ObsoleteAttribute("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")] | ||
+ public SignOutAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock); | ||
} | ||
- public class SystemClock : ISystemClock | ||
+ [ObsoleteAttribute("Use TimeProvider instead.")] | ||
+ public class SystemClock : ISystemClock | ||
} | ||
``` | ||
|
21 changes: 21 additions & 0 deletions
21
...ew5/Microsoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Authorization.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Microsoft.AspNetCore.Authorization | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Authorization { | ||
- [AttributeUsageAttribute(68, AllowMultiple=false, Inherited=true)] | ||
- public class AllowAnonymousAttribute : Attribute, IAllowAnonymous { | ||
+ [AttributeUsageAttribute(68, AllowMultiple=false, Inherited=true)] | ||
+ [DebuggerDisplayAttribute("{ToString(),nq}")] | ||
+ public class AllowAnonymousAttribute : Attribute, IAllowAnonymous { | ||
+ public override string ToString(); | ||
} | ||
- [AttributeUsageAttribute(68, AllowMultiple=true, Inherited=true)] | ||
- public class AuthorizeAttribute : Attribute, IAuthorizeData { | ||
+ [AttributeUsageAttribute(68, AllowMultiple=true, Inherited=true)] | ||
+ [DebuggerDisplayAttribute("{ToString(),nq}")] | ||
+ public class AuthorizeAttribute : Attribute, IAuthorizeData { | ||
+ public override string ToString(); | ||
} | ||
} | ||
``` | ||
|
24 changes: 24 additions & 0 deletions
24
.../preview5/Microsoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Builder.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Microsoft.AspNetCore.Builder | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Builder { | ||
- public class ComponentTypeMetadata { | ||
- public ComponentTypeMetadata(Type componentType); | ||
- public Type Type { get; } | ||
- } | ||
public static class HttpLoggingEndpointConventionBuilderExtensions { | ||
- public static TBuilder WithHttpLogging<TBuilder>(this TBuilder builder, HttpLoggingFields loggingFields, int requestBodyLogLimit = -1, int responseBodyLogLimit = -1) where TBuilder : IEndpointConventionBuilder; | ||
+ public static TBuilder WithHttpLogging<TBuilder>(this TBuilder builder, HttpLoggingFields loggingFields, int? requestBodyLogLimit = default(int?), int? responseBodyLogLimit = default(int?)) where TBuilder : IEndpointConventionBuilder; | ||
} | ||
public class RazorComponentEndpointConventionBuilder : IEndpointConventionBuilder { | ||
+ public ComponentApplicationBuilder ApplicationBuilder { get; } | ||
+ public RazorComponentEndpointConventionBuilder AddServerRenderMode(); | ||
+ public RazorComponentEndpointConventionBuilder AddWebAssemblyRenderMode(); | ||
} | ||
public static class RazorComponentsEndpointRouteBuilderExtensions { | ||
- public static RazorComponentEndpointConventionBuilder MapRazorComponents<TRootComponent>(this IEndpointRouteBuilder endpoints) where TRootComponent : IRazorComponentApplication<TRootComponent>; | ||
+ public static RazorComponentEndpointConventionBuilder MapRazorComponents<TRootComponent>(this IEndpointRouteBuilder endpoints); | ||
} | ||
} | ||
``` | ||
|
43 changes: 43 additions & 0 deletions
43
...rosoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Components.Discovery.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
+ } | ||
+} | ||
``` | ||
|
31 changes: 31 additions & 0 deletions
31
...rosoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Components.Endpoints.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Microsoft.AspNetCore.Components.Endpoints | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Components.Endpoints { | ||
+ public class ComponentTypeMetadata { | ||
+ public ComponentTypeMetadata(Type componentType); | ||
+ public Type Type { get; } | ||
+ } | ||
public interface IComponentPrerenderer { | ||
+ ValueTask<IHtmlAsyncContent> PrerenderComponentAsync(HttpContext httpContext, Type componentType, IComponentRenderMode renderMode, ParameterView parameters); | ||
- ValueTask<IHtmlAsyncContent> PrerenderComponentAsync(HttpContext httpContext, Type componentType, RenderMode renderMode, ParameterView parameters); | ||
} | ||
+ public class RazorComponentDataSourceOptions { | ||
+ public RazorComponentDataSourceOptions(); | ||
+ public bool UseDeclaredRenderModes { get; set; } | ||
+ } | ||
public class RazorComponentResult : IResult { | ||
- public RenderMode RenderMode { 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 RootComponentMetadata(Type rootComponentType); | ||
+ public Type Type { get; } | ||
+ } | ||
} | ||
``` | ||
|
10 changes: 10 additions & 0 deletions
10
...pp/8.0-preview5_Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure { | ||
public class StaticHtmlRenderer : Renderer { | ||
+ public HtmlRootComponent BeginRenderingComponent(IComponent component, ParameterView initialParameters); | ||
} | ||
} | ||
``` | ||
|
12 changes: 12 additions & 0 deletions
12
...t.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Components.Infrastructure.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
+ } | ||
} | ||
``` | ||
|
15 changes: 15 additions & 0 deletions
15
...osoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Components.RenderTree.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Microsoft.AspNetCore.Components.RenderTree | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Components.RenderTree { | ||
public abstract class Renderer : IAsyncDisposable, IDisposable { | ||
+ protected internal virtual IComponent ResolveComponentForRenderMode(Type componentType, int? parentComponentId, IComponentActivator componentActivator, IComponentRenderMode componentTypeRenderMode); | ||
} | ||
public abstract class WebRenderer : Renderer { | ||
- protected int RendererId { get; set; } | ||
+ protected int RendererId { get; [ObsoleteAttribute("The renderer ID gets assigned automatically upon construction.")] set; } | ||
+ public Task WaitUntilAttachedAsync(); | ||
} | ||
} | ||
``` | ||
|
14 changes: 14 additions & 0 deletions
14
...rosoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Components.Rendering.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Microsoft.AspNetCore.Components.Rendering | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Components.Rendering { | ||
- [DebuggerDisplayAttribute("{GetDebuggerDisplay(),nq}")] | ||
- public class ComponentState : IDisposable { | ||
+ [DebuggerDisplayAttribute("{GetDebuggerDisplay(),nq}")] | ||
+ public class ComponentState : IAsyncDisposable { | ||
- public void Dispose(); | ||
+ public virtual ValueTask DisposeAsync(); | ||
} | ||
} | ||
``` | ||
|
10 changes: 10 additions & 0 deletions
10
...icrosoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Components.Routing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Microsoft.AspNetCore.Components.Routing | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Components.Routing { | ||
+ public interface IRoutingStateProvider { | ||
+ RouteData RouteData { get; } | ||
+ } | ||
} | ||
``` | ||
|
42 changes: 42 additions & 0 deletions
42
...w5/Microsoft.AspNetCore.App/8.0-preview5_Microsoft.AspNetCore.Components.Web.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Microsoft.AspNetCore.Components.Web | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Components.Web { | ||
+ public class AutoRenderMode : IComponentRenderMode { | ||
+ public AutoRenderMode(); | ||
+ public AutoRenderMode(bool prerender); | ||
+ public bool Prerender { get; } | ||
+ } | ||
+ public static class RenderMode { | ||
+ public static AutoRenderMode Auto { get; } | ||
+ public static ServerRenderMode Server { get; } | ||
+ public static WebAssemblyRenderMode WebAssembly { get; } | ||
+ } | ||
+ public class RenderModeAutoAttribute : RenderModeAttribute { | ||
+ public RenderModeAutoAttribute(); | ||
+ public RenderModeAutoAttribute(bool prerender); | ||
+ public override IComponentRenderMode Mode { get; } | ||
+ } | ||
+ public class RenderModeServerAttribute : RenderModeAttribute { | ||
+ public RenderModeServerAttribute(); | ||
+ public RenderModeServerAttribute(bool prerender); | ||
+ public override IComponentRenderMode Mode { get; } | ||
+ } | ||
+ public class RenderModeWebAssemblyAttribute : RenderModeAttribute { | ||
+ public RenderModeWebAssemblyAttribute(); | ||
+ public RenderModeWebAssemblyAttribute(bool prerender); | ||
+ public override IComponentRenderMode Mode { get; } | ||
+ } | ||
+ public class ServerRenderMode : IComponentRenderMode { | ||
+ public ServerRenderMode(); | ||
+ public ServerRenderMode(bool prerender); | ||
+ public bool Prerender { get; } | ||
+ } | ||
+ public class WebAssemblyRenderMode : IComponentRenderMode { | ||
+ public WebAssemblyRenderMode(); | ||
+ public WebAssemblyRenderMode(bool prerender); | ||
+ public bool Prerender { get; } | ||
+ } | ||
} | ||
``` | ||
|
Oops, something went wrong.