Skip to content
Docs Try Aspire

CertificateTrustConfigurationCallbackAnnotationContext

Class sealed net8.0
📦 Aspire.Hosting v13.2.0
Context provided to a CertificateTrustConfigurationCallbackAnnotation callback.
namespace Aspire.Hosting.ApplicationModel;
public sealed class CertificateTrustConfigurationCallbackAnnotationContext
{
// ...
}
View all constructors
Argumentsget; init
List<object>
CancellationTokenget; init
CancellationToken
CertificateBundlePathget; init
A value provider that will resolve to a path to a custom certificate bundle.
CertificateDirectoriesPathget; init
A value provider that will resolve to paths containing individual certificates.
EnvironmentVariablesget; init
Dictionary<string, object>
ExecutionContextget; init
Gets the DistributedApplicationExecutionContext for this session.
Resourceget; init
Gets the resource to which the annotation is applied.
Scopeget; init
Gets the CertificateTrustScope for the resource.
View all properties
CreateCustomBundle(Func<X509Certificate2Collection, CancellationToken, Task<byte[]>>)experimental
Adds a custom certificate bundle to the callback context. The provided generator will be invoked during trust configuration and should return the bundle contents as a byte array.
View all methods