ICustomStorageInterface<TState, TDelta>
interface
Namespace: Orleans.EventSourcing.CustomStorage
The storage interface exposed by grains that want to use the CustomStorage log-consistency provider
public interface ICustomStorageInterface<TState, TDelta>Methods
ApplyUpdatesToStorage(IReadOnlyList<TDelta>, int)Applies the given array of deltas to storage, and returns true, if the version in storage matches the expected version. Otherwise, does nothing and returns false. If successful, the version of storage must be increased by the number of deltas.ClearStoredStateClears the stored state in storage.ReadStateFromStorageReads the current state and version from storage (note that the state object may be mutated by the provider, so it must not be shared).
