FaultInjectionStorageProvider<TStorage> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |