Skip to content

IStorageFaultGrain Methods

Grain that tracks storage exceptions to be injected.

AddFaultOnClear(GrainId, Exception)

abstract
public abstract Task AddFaultOnClear(GrainId grainId, Exception exception)
Adds a storage exception to be thrown when the referenced grain clears state in a storage provider

Parameters

grainIdGrainId
exceptionException

Returns

Task.

AddFaultOnRead(GrainId, Exception)

abstract
public abstract Task AddFaultOnRead(GrainId grainId, Exception exception)
Adds a storage exception to be thrown when the referenced grain reads state from a storage provider

Parameters

grainIdGrainId
exceptionException

Returns

Task.

AddFaultOnWrite(GrainId, Exception)

abstract
public abstract Task AddFaultOnWrite(GrainId grainId, Exception exception)
Adds a storage exception to be thrown when the referenced grain writes state to a storage provider

Parameters

grainIdGrainId
exceptionException

Returns

Task.

OnClear(GrainId)

abstract
public abstract Task OnClear(GrainId grainId)
Throws a storage exception if one has been added for the grain reference for clearing state.

Parameters

grainIdGrainId

OnRead(GrainId)

abstract
public abstract Task OnRead(GrainId grainId)
Throws a storage exception if one has been added for the grain reference for reading.

Parameters

grainIdGrainId

OnWrite(GrainId)

abstract
public abstract Task OnWrite(GrainId grainId)
Throws a storage exception if one has been added for the grain reference for writing.

Parameters

grainIdGrainId