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.
12
public class AzureCosmosDBEmulatorResource(
AzureCosmosDBResource
innerResource) : ContainerResource(innerResource.Name), IResource
14
internal
AzureCosmosDBResource
InnerResource { get; } = innerResource;
AzureCosmosDBExtensions.cs (19)
31
public static IResourceBuilder<
AzureCosmosDBResource
> AddAzureCosmosDB(this IDistributedApplicationBuilder builder, [ResourceName] string name)
35
var
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.
52
public 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.
66
public static IResourceBuilder<
AzureCosmosDBResource
> RunAsPreviewEmulator(this IResourceBuilder<
AzureCosmosDBResource
> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer = null)
69
private static IResourceBuilder<
AzureCosmosDBResource
> RunAsEmulator(this IResourceBuilder<
AzureCosmosDBResource
> builder, Action<IResourceBuilder<AzureCosmosDBEmulatorResource>>? configureContainer, bool useVNextPreview)
218
public static IResourceBuilder<
AzureCosmosDBResource
> AddDatabase(this IResourceBuilder<
AzureCosmosDBResource
> builder, string databaseName)
230
public static IResourceBuilder<
AzureCosmosDBResource
> WithDatabase(this IResourceBuilder<
AzureCosmosDBResource
> builder, string name, Action<CosmosDBDatabase>? configure = null)
288
public static IResourceBuilder<
AzureCosmosDBResource
> WithAccessKeyAuthentication(
289
this IResourceBuilder<
AzureCosmosDBResource
> builder)
293
var
azureResource = builder.Resource;
301
var
azureResource = (
AzureCosmosDBResource
)infrastructure.AspireResource;