FaultInjectionGrainStorage Class

Definition

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

C#
public class FaultInjectionGrainStorage : Orleans.ILifecycleParticipant<Orleans.Runtime.ISiloLifecycle>, Orleans.Storage.IGrainStorage
Inheritance
FaultInjectionGrainStorage
Implements

Constructors

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

Product Versions
.NET Orleans 3.4.5, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0