IResourceWithConnectionString
Interface net10.0
Represents a resource that has a connection string associated with it.
namespace Aspire.Hosting.ApplicationModel;
public interface IResourceWithConnectionString : Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...}Properties2
Section titled PropertiesConnectionStringEnvironmentVariablevirtualgetstring? The environment variable name to use for the connection string.
ConnectionStringExpressionabstractget Describes the connection string format string used for this resource.
Methods2
Section titled MethodsGetConnectionPropertiesvirtualIEnumerable<KeyValuePair<string, ReferenceExpression>> Retrieves a collection of connection property name and value pairs associated with the current context.
GetConnectionStringAsync(CancellationToken)virtualValueTask<string?> Gets the connection string associated with the resource.