Redigera

Dela via


FaultInjectionStorageProvider<TStorage> Class

Definition

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

public class FaultInjectionStorageProvider<TStorage> : Orleans.Storage.IStorageProvider where TStorage : IStorageProvider, new()
type FaultInjectionStorageProvider<'Storage (requires 'Storage :> IStorageProvider and 'Storage : (new : unit -> 'Storage))> = class
    interface IStorageProvider
    interface IProvider
Public Class FaultInjectionStorageProvider(Of TStorage)
Implements IStorageProvider

Type Parameters

TStorage
Inheritance
FaultInjectionStorageProvider<TStorage>
Derived
Implements

Constructors

FaultInjectionStorageProvider<TStorage>()

Default conststructor which creates the decorated storage provider

Fields

DelayMillisecondsPropertyName

Name of the property that controls the inserted delay.

Properties

Log

Logger used by this storage provider instance.

Name

The name of this provider instance, as given to it in the config.

Methods

ClearStateAsync(String, GrainReference, IGrainState)

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

Close()

Close function for this provider instance.

Init(String, IProviderRuntime, IProviderConfiguration)

Initializes the decorated storage provider.

ReadStateAsync(String, GrainReference, IGrainState)

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.

Applies to