Skip to content

Conversation

@jmprieur
Copy link
Contributor

@jmprieur jmprieur commented May 1, 2025

Fixes #186 186

Note that with C#15, we can do better with an extension property:

// Extension property (C# 15)
implicit extension XExtensions for X
{
public X509Certificate2 Certificate
{
get => this.GetCertificate();
set => this.SetCertificate(value);
}
}

@jmprieur jmprieur requested a review from a team as a code owner May 1, 2025 01:04
/// <remarks>BE CAREFUL when you serialize a credential description. The secrets it contains
/// will be serialized too depending on the CredentialSource (ClientSecret, Base64Encoded, and Password)</remarks>
[RequiresDynamicCode("Uses JsonSerializer which may require dynamic code generation for certain types.")]
[RequiresUnreferencedCode("Uses JsonSerializer which may require dynamic code generation for certain types.")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For DecryptKeysAuthenticationOptions, we could check if the options has a TypeInfoResolver, and if it doesn't then we could clone the options, and create a source generated context.

/// of credential information based on SourceType.
/// </summary>
/// <remarks>BE CAREFUL when you serialize a credential description. The secrets it contains
/// will be serialized too depending on the CredentialSource (ClientSecret, Base64Encoded, and Password)</remarks>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should expand the docs that for CustomSignedAssertionProviderData, JsonSerializerOptions.TypeInfoResolver can be used.

<PublishAot>true</PublishAot>
<StartupObject>Mise.Configuration.Aot.Tests.Program</StartupObject>
<EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator>
<!--<NoWarn>SYSLIB1100;SYSLIB1101;SYSLIB0026;SYSLIB0027;SYSLIB0028</NoWarn>-->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!--<NoWarn>SYSLIB1100;SYSLIB1101;SYSLIB0026;SYSLIB0027;SYSLIB0028</NoWarn>-->

@jmprieur jmprieur changed the title Adding an AotTest Abstractions is now fully AoT compatible and durability ensured by a new AotTest May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Make Abstractions fully AoT compatible

4 participants