12 references to AzureCosmosDBResource
Aspire.Hosting.Azure.CosmosDB (12)
AzureCosmosDBEmulatorResource.cs (3)
9
/// Wraps an <see cref="
AzureCosmosDBResource
" /> in a type that exposes container extension methods.
12
public class AzureCosmosDBEmulatorResource(
AzureCosmosDBResource
innerResource) : ContainerResource(innerResource.Name), IResource
14
private readonly
AzureCosmosDBResource
_innerResource = innerResource;
AzureCosmosDBExtensions.cs (9)
30
public static IResourceBuilder<
AzureCosmosDBResource
> AddAzureCosmosDB(this IDistributedApplicationBuilder builder, [ResourceName] string name)
63
var
azureResource = (
AzureCosmosDBResource
)infrastructure.AspireResource;
93
var
resource = new AzureCosmosDBResource(name, configureInfrastructure);
99
/// Configures an Azure Cosmos DB resource to be emulated using the Azure Cosmos DB emulator with the NoSQL API. This resource requires an <see cref="
AzureCosmosDBResource
"/> to be added to the application model.
110
public static IResourceBuilder<
AzureCosmosDBResource
> RunAsEmulator(this IResourceBuilder<
AzureCosmosDBResource
> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer = null)
227
public static IResourceBuilder<
AzureCosmosDBResource
> AddDatabase(this IResourceBuilder<
AzureCosmosDBResource
> builder, string databaseName)