HttpsCertificateConfigurationCallbackAnnotationContext Properties
Class Properties 9 members
Context provided to a
HttpsCertificateConfigurationCallbackAnnotation callback. Gets the command line arguments associated with the callback context. Values can be either a string or a path value provider such as
HttpsCertificateConfigurationCallbackAnnotationContext.CertificatePath or HttpsCertificateConfigurationCallbackAnnotationContext.KeyPath. public List<object> Arguments { get; init; }Remarks
builder.AddContainer("my-resource", "my-image:latest") .WithHttpsCertificateConfiguration(ctx => { ctx.Arguments.Add("--certificate"); ctx.Arguments.Add(ctx.CertificatePath); ctx.Arguments.Add("--key"); ctx.Arguments.Add(ctx.KeyPath); return Task.CompletedTask; }); Gets the
HttpsCertificateConfigurationCallbackAnnotationContext.CancellationToken that can be used to cancel the operation. public CancellationToken CancellationToken { get; init; } A value provider that will resolve to a path to the certificate file.
public ReferenceExpression CertificatePath { get; init; } Gets the environment variables required to configure a certificate key pair 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
HttpsCertificateConfigurationCallbackAnnotationContext.CertificatePath or HttpsCertificateConfigurationCallbackAnnotationContext.KeyPath. public Dictionary<string, object> EnvironmentVariables { get; init; }Remarks
builder.AddContainer("my-resource", "my-image:latest") .WithHttpsCertificateConfiguration(ctx => { ctx .EnvironmentVariables["Kestrel__Certificates__Path"] = ctx .CertificatePath; ctx .EnvironmentVariables["Kestrel__Certificates__KeyPath"] = ctx .KeyPath; return Task.CompletedTask; }); Gets the
DistributedApplicationExecutionContext for this session. public DistributedApplicationExecutionContext ExecutionContext { get; init; } A value provider that will resolve to a path to the private key for the certificate.
public ReferenceExpression KeyPath { get; init; } A value provider that will resolve to the password for the private key, if applicable.
public IValueProvider? Password { get; init; } A value provider that will resolve to a path to a PFX file for the key pair.
public ReferenceExpression PfxPath { get; init; } Gets the resource to which the annotation is applied.
public IResource Resource { get; init; }