Skip to content

Commit f023a1b

Browse files
authored
API Diff between .NET 10.0 Preview 5 and Preview 6 (#9976)
* API Diff between .NET 10.0 Preview 5 and Preview 6 * Remove extra newlines
1 parent 23f8556 commit f023a1b

28 files changed

+1350
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# API difference between .NET 10.0 Preview 5 and .NET 10.0 Preview 6
2+
3+
API listing follows standard diff formatting.
4+
Lines preceded by a '+' are additions and a '-' indicates removal.
5+
6+
* [Microsoft.AspNetCore.Components](10.0-preview6_Microsoft.AspNetCore.Components.md)
7+
* [Microsoft.AspNetCore.Components.Endpoints](10.0-preview6_Microsoft.AspNetCore.Components.Endpoints.md)
8+
* [Microsoft.AspNetCore.Components.Server](10.0-preview6_Microsoft.AspNetCore.Components.Server.md)
9+
* [Microsoft.AspNetCore.Connections.Abstractions](10.0-preview6_Microsoft.AspNetCore.Connections.Abstractions.md)
10+
* [Microsoft.AspNetCore.Http.Abstractions](10.0-preview6_Microsoft.AspNetCore.Http.Abstractions.md)
11+
* [Microsoft.AspNetCore.Identity](10.0-preview6_Microsoft.AspNetCore.Identity.md)
12+
* [Microsoft.AspNetCore.Server.HttpSys](10.0-preview6_Microsoft.AspNetCore.Server.HttpSys.md)
13+
* [Microsoft.Extensions.FileSystemGlobbing](10.0-preview6_Microsoft.Extensions.FileSystemGlobbing.md)
14+
* [Microsoft.Extensions.Identity.Core](10.0-preview6_Microsoft.Extensions.Identity.Core.md)
15+
* [Microsoft.Extensions.Identity.Stores](10.0-preview6_Microsoft.Extensions.Identity.Stores.md)
16+
* [Microsoft.Extensions.Validation](10.0-preview6_Microsoft.Extensions.Validation.md)
17+
* [System.Formats.Cbor](10.0-preview6_System.Formats.Cbor.md)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Microsoft.AspNetCore.Components.Endpoints
2+
3+
```diff
4+
namespace Microsoft.AspNetCore.Components
5+
{
6+
+ public sealed class LinkPreload : Microsoft.AspNetCore.Components.IComponent
7+
+ {
8+
+ public LinkPreload();
9+
+ }
10+
}
11+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Microsoft.AspNetCore.Components.Server
2+
3+
```diff
4+
namespace Microsoft.AspNetCore.Components.Server
5+
{
6+
public sealed class CircuitOptions
7+
{
8+
+ public Microsoft.Extensions.Caching.Hybrid.HybridCache? HybridPersistenceCache { get; set; }
9+
+ public System.Nullable<System.TimeSpan> PersistedCircuitDistributedRetentionPeriod { get; set; }
10+
+ public int PersistedCircuitInMemoryMaxRetained { get; set; }
11+
+ public System.TimeSpan PersistedCircuitInMemoryRetentionPeriod { get; set; }
12+
}
13+
}
14+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Microsoft.AspNetCore.Components
2+
3+
```diff
4+
namespace Microsoft.AspNetCore.Components.Routing
5+
{
6+
public sealed class NotFoundEventArgs
7+
{
8+
- public NotFoundEventArgs();
9+
+ public NotFoundEventArgs(string url);
10+
+ public string Path { get; }
11+
}
12+
}
13+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Microsoft.AspNetCore.Connections.Abstractions
2+
3+
```diff
4+
namespace Microsoft.AspNetCore.Connections
5+
{
6+
+ public interface IMemoryPoolFactory<T>
7+
+ {
8+
+ System.Buffers.MemoryPool<T> Create();
9+
+ }
10+
}
11+
```
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Microsoft.AspNetCore.Http.Abstractions
2+
3+
```diff
4+
- namespace Microsoft.AspNetCore.Http.Validation
5+
- {
6+
- public interface IValidatableInfo
7+
- {
8+
- System.Threading.Tasks.Task ValidateAsync(object? value, Microsoft.AspNetCore.Http.Validation.ValidateContext context, System.Threading.CancellationToken cancellationToken);
9+
- }
10+
- public interface IValidatableInfoResolver
11+
- {
12+
- bool TryGetValidatableParameterInfo(System.Reflection.ParameterInfo parameterInfo, out Microsoft.AspNetCore.Http.Validation.IValidatableInfo? validatableInfo);
13+
- bool TryGetValidatableTypeInfo(System.Type type, out Microsoft.AspNetCore.Http.Validation.IValidatableInfo? validatableInfo);
14+
- }
15+
- public abstract class ValidatableParameterInfo : Microsoft.AspNetCore.Http.Validation.IValidatableInfo
16+
- {
17+
- protected ValidatableParameterInfo(System.Type parameterType, string name, string displayName);
18+
- protected abstract System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes();
19+
- public virtual System.Threading.Tasks.Task ValidateAsync(object? value, Microsoft.AspNetCore.Http.Validation.ValidateContext context, System.Threading.CancellationToken cancellationToken);
20+
- }
21+
- public abstract class ValidatablePropertyInfo : Microsoft.AspNetCore.Http.Validation.IValidatableInfo
22+
- {
23+
- protected ValidatablePropertyInfo(System.Type declaringType, System.Type propertyType, string name, string displayName);
24+
- protected abstract System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes();
25+
- public virtual System.Threading.Tasks.Task ValidateAsync(object? value, Microsoft.AspNetCore.Http.Validation.ValidateContext context, System.Threading.CancellationToken cancellationToken);
26+
- }
27+
- public sealed class ValidatableTypeAttribute
28+
- {
29+
- public ValidatableTypeAttribute();
30+
- }
31+
- public abstract class ValidatableTypeInfo : Microsoft.AspNetCore.Http.Validation.IValidatableInfo
32+
- {
33+
- protected ValidatableTypeInfo(System.Type type, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Validation.ValidatablePropertyInfo> members);
34+
- public virtual System.Threading.Tasks.Task ValidateAsync(object? value, Microsoft.AspNetCore.Http.Validation.ValidateContext context, System.Threading.CancellationToken cancellationToken);
35+
- }
36+
- public sealed class ValidateContext
37+
- {
38+
- public ValidateContext();
39+
- public int CurrentDepth { get; set; }
40+
- public string CurrentValidationPath { get; set; }
41+
- public required System.ComponentModel.DataAnnotations.ValidationContext ValidationContext { get; set; }
42+
- public System.Collections.Generic.Dictionary<string, string[]>? ValidationErrors { get; set; }
43+
- public required Microsoft.AspNetCore.Http.Validation.ValidationOptions ValidationOptions { get; set; }
44+
- }
45+
- public class ValidationOptions
46+
- {
47+
- public ValidationOptions();
48+
- public bool TryGetValidatableParameterInfo(System.Reflection.ParameterInfo parameterInfo, out Microsoft.AspNetCore.Http.Validation.IValidatableInfo? validatableInfo);
49+
- public bool TryGetValidatableTypeInfo(System.Type type, out Microsoft.AspNetCore.Http.Validation.IValidatableInfo? validatableTypeInfo);
50+
- public int MaxDepth { get; set; }
51+
- public System.Collections.Generic.IList<Microsoft.AspNetCore.Http.Validation.IValidatableInfoResolver> Resolvers { get; }
52+
- }
53+
- }
54+
- namespace Microsoft.Extensions.DependencyInjection
55+
- {
56+
- public static class ValidationServiceCollectionExtensions
57+
- {
58+
- public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddValidation(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action<Microsoft.AspNetCore.Http.Validation.ValidationOptions>? configureOptions = null);
59+
- }
60+
- }
61+
```
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Microsoft.AspNetCore.Identity
2+
3+
```diff
4+
namespace Microsoft.AspNetCore.Identity
5+
{
6+
public class SignInManager<TUser>
7+
where TUser : class
8+
{
9+
+ public SignInManager(Microsoft.AspNetCore.Identity.UserManager<TUser> userManager, Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor, Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<TUser> claimsFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> optionsAccessor, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.SignInManager<TUser>> logger, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes, Microsoft.AspNetCore.Identity.IUserConfirmation<TUser> confirmation, Microsoft.AspNetCore.Identity.IPasskeyHandler<TUser> passkeyHandler);
10+
+ public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyCreationOptions> ConfigurePasskeyCreationOptionsAsync(Microsoft.AspNetCore.Identity.PasskeyCreationArgs creationArgs);
11+
+ public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyRequestOptions> ConfigurePasskeyRequestOptionsAsync(Microsoft.AspNetCore.Identity.PasskeyRequestArgs<TUser> requestArgs);
12+
+ public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyCreationOptions> GeneratePasskeyCreationOptionsAsync(Microsoft.AspNetCore.Identity.PasskeyCreationArgs creationArgs);
13+
+ public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyRequestOptions> GeneratePasskeyRequestOptionsAsync(Microsoft.AspNetCore.Identity.PasskeyRequestArgs<TUser> requestArgs);
14+
+ public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult> PasskeySignInAsync(string credentialJson, Microsoft.AspNetCore.Identity.PasskeyRequestOptions options);
15+
+ public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAssertionResult<TUser>> PerformPasskeyAssertionAsync(string credentialJson, Microsoft.AspNetCore.Identity.PasskeyRequestOptions options);
16+
+ public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAttestationResult> PerformPasskeyAttestationAsync(string credentialJson, Microsoft.AspNetCore.Identity.PasskeyCreationOptions options);
17+
+ public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyCreationOptions?> RetrievePasskeyCreationOptionsAsync();
18+
+ public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyRequestOptions?> RetrievePasskeyRequestOptionsAsync();
19+
}
20+
+ public sealed class AuthenticatorSelectionCriteria
21+
+ {
22+
+ public AuthenticatorSelectionCriteria();
23+
+ public string? AuthenticatorAttachment { get; set; }
24+
+ public bool? RequireResidentKey { get; }
25+
+ public string? ResidentKey { get; set; }
26+
+ public string UserVerification { get; set; }
27+
+ }
28+
+ public class DefaultPasskeyHandler<TUser> : Microsoft.AspNetCore.Identity.IPasskeyHandler<TUser> where TUser : class
29+
+ {
30+
+ public DefaultPasskeyHandler(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> options);
31+
+ protected virtual System.Threading.Tasks.Task<bool> IsValidOriginAsync(Microsoft.AspNetCore.Identity.PasskeyOriginInfo originInfo, Microsoft.AspNetCore.Http.HttpContext httpContext);
32+
+ public System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAssertionResult<TUser>> PerformAssertionAsync(Microsoft.AspNetCore.Identity.PasskeyAssertionContext<TUser> context);
33+
+ protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAssertionResult<TUser>> PerformAssertionCoreAsync(Microsoft.AspNetCore.Identity.PasskeyAssertionContext<TUser> context);
34+
+ public System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAttestationResult> PerformAttestationAsync(Microsoft.AspNetCore.Identity.PasskeyAttestationContext<TUser> context);
35+
+ protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAttestationResult> PerformAttestationCoreAsync(Microsoft.AspNetCore.Identity.PasskeyAttestationContext<TUser> context);
36+
+ protected virtual System.Threading.Tasks.Task<bool> VerifyAttestationStatementAsync(System.ReadOnlyMemory<byte> attestationObject, System.ReadOnlyMemory<byte> clientDataHash, Microsoft.AspNetCore.Http.HttpContext httpContext);
37+
+ }
38+
+ public interface IPasskeyHandler<TUser>
39+
+ where TUser : class
40+
+ {
41+
+ System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAssertionResult<TUser>> PerformAssertionAsync(Microsoft.AspNetCore.Identity.PasskeyAssertionContext<TUser> context);
42+
+ System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAttestationResult> PerformAttestationAsync(Microsoft.AspNetCore.Identity.PasskeyAttestationContext<TUser> context);
43+
+ }
44+
+ public sealed class PasskeyAssertionContext<TUser>
45+
+ where TUser : class
46+
+ {
47+
+ public PasskeyAssertionContext();
48+
+ public required string CredentialJson { get; init; }
49+
+ public required Microsoft.AspNetCore.Http.HttpContext HttpContext { get; init; }
50+
+ public required string OriginalOptionsJson { get; init; }
51+
+ public TUser? User { get; init; }
52+
+ public required Microsoft.AspNetCore.Identity.UserManager<TUser> UserManager { get; init; }
53+
+ }
54+
+ public static class PasskeyAssertionResult
55+
+ {
56+
+ public static Microsoft.AspNetCore.Identity.PasskeyAssertionResult<TUser> Fail<TUser>(Microsoft.AspNetCore.Identity.PasskeyException failure)
57+
+ where TUser : class;
58+
+ public static Microsoft.AspNetCore.Identity.PasskeyAssertionResult<TUser> Success<TUser>(Microsoft.AspNetCore.Identity.UserPasskeyInfo passkey, TUser user)
59+
+ where TUser : class;
60+
+ }
61+
+ public sealed class PasskeyAssertionResult<TUser>
62+
+ where TUser : class
63+
+ {
64+
+ public Microsoft.AspNetCore.Identity.PasskeyException? Failure { get; }
65+
+ public Microsoft.AspNetCore.Identity.UserPasskeyInfo? Passkey { get; }
66+
+ public bool? Succeeded { get; }
67+
+ public TUser? User { get; }
68+
+ }
69+
+ public sealed class PasskeyAttestationContext<TUser>
70+
+ where TUser : class
71+
+ {
72+
+ public PasskeyAttestationContext();
73+
+ public required string CredentialJson { get; init; }
74+
+ public required Microsoft.AspNetCore.Http.HttpContext HttpContext { get; init; }
75+
+ public required string OriginalOptionsJson { get; init; }
76+
+ public required Microsoft.AspNetCore.Identity.UserManager<TUser> UserManager { get; init; }
77+
+ }
78+
+ public sealed class PasskeyAttestationResult
79+
+ {
80+
+ public static Microsoft.AspNetCore.Identity.PasskeyAttestationResult Fail(Microsoft.AspNetCore.Identity.PasskeyException failure);
81+
+ public static Microsoft.AspNetCore.Identity.PasskeyAttestationResult Success(Microsoft.AspNetCore.Identity.UserPasskeyInfo passkey);
82+
+ public Microsoft.AspNetCore.Identity.PasskeyException? Failure { get; }
83+
+ public Microsoft.AspNetCore.Identity.UserPasskeyInfo? Passkey { get; }
84+
+ public bool? Succeeded { get; }
85+
+ }
86+
+ public sealed class PasskeyCreationArgs
87+
+ {
88+
+ public PasskeyCreationArgs(Microsoft.AspNetCore.Identity.PasskeyUserEntity userEntity);
89+
+ public string Attestation { get; set; }
90+
+ public Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria? AuthenticatorSelection { get; set; }
91+
+ public System.Nullable<System.Text.Json.JsonElement> Extensions { get; set; }
92+
+ public Microsoft.AspNetCore.Identity.PasskeyUserEntity UserEntity { get; }
93+
+ }
94+
+ public sealed class PasskeyCreationOptions
95+
+ {
96+
+ public PasskeyCreationOptions(Microsoft.AspNetCore.Identity.PasskeyUserEntity userEntity, string optionsJson);
97+
+ public string AsJson();
98+
+ public override string ToString();
99+
+ public Microsoft.AspNetCore.Identity.PasskeyUserEntity UserEntity { get; }
100+
+ }
101+
+ public sealed class PasskeyException
102+
+ {
103+
+ public PasskeyException(string message, System.Exception? innerException);
104+
+ public PasskeyException(string message);
105+
+ }
106+
+ public sealed class PasskeyOriginInfo
107+
+ {
108+
+ public PasskeyOriginInfo(string origin, bool crossOrigin);
109+
+ public bool CrossOrigin { get; }
110+
+ public string Origin { get; }
111+
+ }
112+
+ public sealed class PasskeyRequestArgs<TUser>
113+
+ where TUser : class
114+
+ {
115+
+ public PasskeyRequestArgs();
116+
+ public System.Nullable<System.Text.Json.JsonElement> Extensions { get; set; }
117+
+ public TUser? User { get; set; }
118+
+ public string UserVerification { get; set; }
119+
+ }
120+
+ public sealed class PasskeyRequestOptions
121+
+ {
122+
+ public PasskeyRequestOptions(string? userId, string optionsJson);
123+
+ public string AsJson();
124+
+ public override string ToString();
125+
+ public string? UserId { get; }
126+
+ }
127+
+ public sealed class PasskeyUserEntity
128+
+ {
129+
+ public PasskeyUserEntity(string id, string name, string? displayName);
130+
+ public string DisplayName { get; }
131+
+ public string Id { get; }
132+
+ public string Name { get; }
133+
+ }
134+
}
135+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Microsoft.AspNetCore.Server.HttpSys
2+
3+
```diff
4+
namespace Microsoft.AspNetCore.Server.HttpSys
5+
{
6+
public class HttpSysOptions
7+
{
8+
- public System.Action<Microsoft.AspNetCore.Http.Features.IFeatureCollection, System.ReadOnlySpan<byte>> TlsClientHelloBytesCallback { get; set; }
9+
}
10+
+ public interface IHttpSysRequestPropertyFeature
11+
+ {
12+
+ bool TryGetTlsClientHello(System.Span<byte> tlsClientHelloBytesDestination, out int bytesReturned);
13+
+ }
14+
}
15+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Microsoft.Extensions.FileSystemGlobbing
2+
3+
```diff
4+
namespace Microsoft.Extensions.FileSystemGlobbing
5+
{
6+
public class Matcher
7+
{
8+
+ public Matcher(System.StringComparison comparisonType = 5, bool preserveFilterOrder = false);
9+
}
10+
}
11+
```

0 commit comments

Comments
 (0)