22 references to AzureCosmosDBResource
Aspire.Hosting.Azure.CosmosDB (22)
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 14internal AzureCosmosDBResource InnerResource { get; } = innerResource;
AzureCosmosDBExtensions.cs (19)
31public static IResourceBuilder<AzureCosmosDBResource> AddAzureCosmosDB(this IDistributedApplicationBuilder builder, [ResourceName] string name) 35var resource = new AzureCosmosDBResource(name, ConfigureCosmosDBInfrastructure); 41/// 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. 52public static IResourceBuilder<AzureCosmosDBResource> RunAsEmulator(this IResourceBuilder<AzureCosmosDBResource> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer = null) 56/// Configures an Azure Cosmos DB resource to be emulated using the Azure Cosmos DB Linux-based emulator (preview) with the NoSQL API. This resource requires an <see cref="AzureCosmosDBResource"/> to be added to the application model. 66public static IResourceBuilder<AzureCosmosDBResource> RunAsPreviewEmulator(this IResourceBuilder<AzureCosmosDBResource> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer = null) 69private static IResourceBuilder<AzureCosmosDBResource> RunAsEmulator(this IResourceBuilder<AzureCosmosDBResource> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer, bool useVNextPreview) 218public static IResourceBuilder<AzureCosmosDBResource> AddDatabase(this IResourceBuilder<AzureCosmosDBResource> builder, string databaseName) 230public static IResourceBuilder<AzureCosmosDBResource> WithDatabase(this IResourceBuilder<AzureCosmosDBResource> builder, string name, Action<CosmosDBDatabase>? configure = null) 288public static IResourceBuilder<AzureCosmosDBResource> WithAccessKeyAuthentication( 289this IResourceBuilder<AzureCosmosDBResource> builder) 293var azureResource = builder.Resource; 301var azureResource = (AzureCosmosDBResource)infrastructure.AspireResource;