ConnectionStringReference Class

Definition

Represents a reference to a connection string.

public class ConnectionStringReference : Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences
type ConnectionStringReference = class
    interface IManifestExpressionProvider
    interface IValueProvider
    interface IValueWithReferences
Public Class ConnectionStringReference
Implements IManifestExpressionProvider, IValueProvider, IValueWithReferences
Inheritance
ConnectionStringReference
Implements

Constructors

Name Description
ConnectionStringReference(IResourceWithConnectionString, Boolean)

Represents a reference to a connection string.

Properties

Name Description
Optional

A flag indicating whether the connection string is optional.

Resource

The resource that the connection string is referencing.

Explicit Interface Implementations

Name Description
IManifestExpressionProvider.ValueExpression
IValueProvider.GetValueAsync(CancellationToken)
IValueProvider.GetValueAsync(ValueProviderContext, CancellationToken)
IValueWithReferences.References

Extension Methods

Name Description
AsEnvironmentPlaceholder(IManifestExpressionProvider, DockerComposeServiceResource)

Creates a placeholder for an environment variable in the Docker Compose file.

AsProvisioningParameter(IManifestExpressionProvider, AzureResourceInfrastructure, String, Nullable<Boolean>)

Creates a new ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with

Applies to