You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The interfaces that are prefixed with `ILowPriority` require priority-based execution to be enabled on the CosmosDB account. Priority-based execution is currently is not enabled by default and to get started using it you need to fill out this [nomination form](https://forms.microsoft.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR_kUn4g8ufhFjXbbwUF1gXFUMUQzUzFZSVkzODRSRkxXM0RKVDNUSDBGNi4u). After submitting, a member of the CosmosDb team will reach out and enable the feature on the accounts you listed and contact you to let you know it’s ready for use.
48
-
49
41
A document resource is represented by a class deriving from the [`CosmosResource`](src/Atc.Cosmos/CosmosResource.cs) base-class, or by implementing the underlying [`ICosmosResource`](src/Atc.Cosmos/ICosmosResource.cs) interface directly.
50
42
51
43
To configure where each resource will be stored in Cosmos, the `ConfigureCosmos(builder)` extension method is used on the `IServiceCollection` when setting up dependency injection (usually in a `Startup.cs` file).
@@ -185,15 +177,6 @@ The registered interfaces are:
See [MSLearn](https://learn.microsoft.com/en-us/azure/cosmos-db/priority-based-execution) for more details.
251
+
252
+
### Delete resources by partition key
253
+
254
+
Thepreviewversionofthelibraryextendsthe `ICosmosWriter` and `ILowPriorityCosmosWriter` withandadditionalmethod `DeletePartitionAsync` todeleteallresourcesinacontainerbasedonapartitionkey. ThedeletionwillbeexecutedinaCosmosDBbackgroundserviceusingapercentageoftheRU's available. The effect are available immediatly as all resources in the partition will not be available through reads or queries.
255
+
256
+
Inordertousethisnewmethodthe"Delete All Items By Partition Key"featureneedstobeenabledontheCosmosDBaccount.
0 commit comments