FaultInjectionGrainStorage Class

Definition

Fault injection decorator for storage providers. This allows users to inject storage exceptions to test error handling scenarios.

public class FaultInjectionGrainStorage : Orleans.ILifecycleParticipant<Orleans.Runtime.ISiloLifecycle>, Orleans.Storage.IGrainStorage
type FaultInjectionGrainStorage = class
    interface IGrainStorage
    interface ILifecycleParticipant<ISiloLifecycle>
Public Class FaultInjectionGrainStorage
Implements IGrainStorage, ILifecycleParticipant(Of ISiloLifecycle)
Inheritance
FaultInjectionGrainStorage
Implements

Constructors

FaultInjectionGrainStorage(IGrainStorage, String, ILoggerFactory, IGrainFactory, FaultInjectionGrainStorageOptions)

Default constructor which creates the decorated storage provider.

Methods

ClearStateAsync(String, GrainReference, IGrainState)

Faults if exception is provided, otherwise calls through to decorated storage provider.

ClearStateAsync<T>(String, GrainId, IGrainState<T>)

Faults if exception is provided, otherwise calls through to decorated storage provider.

Participate(ISiloLifecycle)

Adds the provided observer as a participant in the lifecycle.

ReadStateAsync(String, GrainReference, IGrainState)

Faults if exception is provided, otherwise calls through to decorated storage provider.

ReadStateAsync<T>(String, GrainId, IGrainState<T>)

Faults if exception is provided, otherwise calls through to decorated storage provider.

WriteStateAsync(String, GrainReference, IGrainState)

Faults if exception is provided, otherwise calls through to decorated storage provider.

WriteStateAsync<T>(String, GrainId, IGrainState<T>)

Faults if exception is provided, otherwise calls through to decorated storage provider.

Applies to