# ICustomStorageInterface&lt;TState, TDelta&gt;

Package: [Microsoft.Orleans.EventSourcing](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.EventSourcing) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/CustomStorage/ICustomStorageInterface.cs#L11)

```csharp
public interface ICustomStorageInterface<TState, TDelta>
```

The storage interface exposed by grains that want to use the CustomStorage log-consistency provider

## Type parameters

- `TDelta`: The type for delta objects that represent updates to the state.
- `TState`: The type for the state of the grain.

## Methods

- [ApplyUpdatesToStorage(IReadOnlyList&lt;TDelta&gt;, int)](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.customstorage.icustomstorageinterface-2/methods/applyupdatestostorage-system-collections-generic-ireadonlylist-tdelta-int-beafa6cb/)
- [ClearStoredState](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.customstorage.icustomstorageinterface-2/methods/clearstoredstate-9a06061f/)
- [ReadStateFromStorage](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.customstorage.icustomstorageinterface-2/methods/readstatefromstorage-19da459d/)
