Skip to content
DocsTry Aspire
DocsTry

AzureSqlServerResource Constructors

ClassConstructors2 members
Represents an Azure Sql Server resource.
Constructor(string, Action<AzureResourceInfrastructure>)Section titled Constructor(string, Action<AzureResourceInfrastructure>)
Initializes a new instance of the AzureSqlServerResource class.
public class AzureSqlServerResource
{
public AzureSqlServerResource(
string name,
Action<AzureResourceInfrastructure> configureInfrastructure)
{
// ...
}
}
namestringThe name of the resource.
configureInfrastructureAction<AzureResourceInfrastructure>Callback to configure the Azure resources.
Constructor(SqlServerServerResource, Action<AzureResourceInfrastructure>)Section titled Constructor(SqlServerServerResource, Action<AzureResourceInfrastructure>)
Initializes a new instance of the AzureSqlServerResource class.
public class AzureSqlServerResource
{
public AzureSqlServerResource(
SqlServerServerResource innerResource,
Action<AzureResourceInfrastructure> configureInfrastructure)
{
// ...
}
}
innerResourceSqlServerServerResourceThe ApplicationModel.SqlServerServerResource that this resource wraps.
configureInfrastructureAction<AzureResourceInfrastructure>Callback to configure the Azure resources.