# Microsoft.Orleans.Persistence.Cosmos

10.0.0 | net10.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Persistence.Cosmos)

## Orleans.Hosting

- [HostingExtensions](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.hosting.hostingextensions/) - Extension methods for configuring Azure Cosmos DB persistence.

## Orleans.Persistence.Cosmos

- [CosmosConditionNotSatisfiedException](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosconditionnotsatisfiedexception/) - Exception thrown when a storage provider detects an Etag inconsistency when attempting to perform a WriteStateAsync operation.
- [CosmosGrainStorage](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosgrainstorage/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [CosmosGrainStorageOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosgrainstorageoptions/) - Options for Azure Cosmos DB grain persistence.
- [CosmosOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/) - Options for Azure Cosmos DB storage.
- [CosmosOptionsValidator&lt;TOptions&gt;](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptionsvalidator-1/) - Validates instances of [CosmosOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosoptions/).
- [CosmosStorageFactory](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosstoragefactory/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [ICosmosOperationExecutor](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.icosmosoperationexecutor/) - Functionality for executing operations using the Cosmos DB client.
- [IPartitionKeyProvider](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.ipartitionkeyprovider/) - Creates a partition key for the provided grain.

## OrleansCodeGen.Orleans.Persistence.Cosmos

- [Codec_CosmosConditionNotSatisfiedException](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleanscodegen.orleans.persistence.cosmos.codec-cosmosconditionnotsatisfiedexception/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Copier_CosmosConditionNotSatisfiedException](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleanscodegen.orleans.persistence.cosmos.copier-cosmosconditionnotsatisfiedexception/) - Default copier implementation for (rarely copied) exception classes
