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. 12public class AzureCosmosDBEmulatorResource(AzureCosmosDBResource innerResource) : ContainerResource(innerResource.Name), IResource 14private readonly AzureCosmosDBResource _innerResource = innerResource;
AzureCosmosDBExtensions.cs (9)
30public static IResourceBuilder<AzureCosmosDBResource> AddAzureCosmosDB(this IDistributedApplicationBuilder builder, [ResourceName] string name) 63var azureResource = (AzureCosmosDBResource)infrastructure.AspireResource; 93var 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. 110public static IResourceBuilder<AzureCosmosDBResource> RunAsEmulator(this IResourceBuilder<AzureCosmosDBResource> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer = null) 227public static IResourceBuilder<AzureCosmosDBResource> AddDatabase(this IResourceBuilder<AzureCosmosDBResource> builder, string databaseName)