Skip to content

FaultInjectionGrainStorage Constructors

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

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

View source
public FaultInjectionGrainStorage(IGrainStorage realStorageProvider, string name, ILoggerFactory loggerFactory, IGrainFactory grainFactory, FaultInjectionGrainStorageOptions faultInjectionOptions)
Default constructor which creates the decorated storage provider.

Parameters

realStorageProviderIGrainStorage
The real storage provider.
namestring
The storage provider name.
loggerFactoryILoggerFactory
The logger factory.
grainFactoryIGrainFactory
The grain factory.
faultInjectionOptionsFaultInjectionGrainStorageOptions
The fault injection options.