CertificateTrustConfigurationCallbackAnnotationContext
Classsealednet10.0
Context provided to a
CertificateTrustConfigurationCallbackAnnotation callback. namespace Aspire.Hosting.ApplicationModel;
public sealed class CertificateTrustConfigurationCallbackAnnotationContext{ // ...}10 members
Constructors1
Section titled ConstructorsProperties8
Section titled PropertiesArgumentsget; initList<object> Gets the command line arguments associated with the callback context. Values can be either a string or a path value provider such as
CertificateTrustConfigurationCallbackAnnotationContext.CertificateBundlePath or CertificateTrustConfigurationCallbackAnnotationContext.CertificateDirectoriesPath. CancellationTokenget; initCancellationToken Gets the
CertificateTrustConfigurationCallbackAnnotationContext.CancellationToken that can be used to cancel the operation. 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; initDictionary<string, object> Gets the environment variables required to configure certificate trust for the resource. The dictionary key is the environment variable name; the value can be either a string or a path value provider such as
CertificateTrustConfigurationCallbackAnnotationContext.CertificateBundlePath or CertificateTrustConfigurationCallbackAnnotationContext.CertificateDirectoriesPath. By default the environment will always include an entry for `SSL_CERT_DIR` and may include `SSL_CERT_FILE` if CertificateTrustScope.Override or CertificateTrustScope.System is configured. ExecutionContextget; init Gets the
DistributedApplicationExecutionContext for this session. Methods1
Section titled Methods 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.