# FaultInjectionGrainStorage Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.faultinjectiongrainstorage/)

## FaultInjectionGrainStorage(IGrainStorage, string, ILoggerFactory, IGrainFactory, FaultInjectionGrainStorageOptions) {#constructor-orleans-storage-igrainstorage-string-microsoft-extensions-logging-il-37ff9f78}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.faultinjectiongrainstorage/constructors/constructor-orleans-storage-igrainstorage-string-microsoft-extensions-logging-il-37ff9f78/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestStorageProviders/FaultInjectionStorageProvider.cs#L46-L53)

```csharp
public FaultInjectionGrainStorage(IGrainStorage realStorageProvider, string name, ILoggerFactory loggerFactory, IGrainFactory grainFactory, FaultInjectionGrainStorageOptions faultInjectionOptions)
```

Default constructor which creates the decorated storage provider.

### Parameters

- `realStorageProvider` (`IGrainStorage`): The real storage provider.
- `name` (`string`): The storage provider name.
- `loggerFactory` (`ILoggerFactory`): The logger factory.
- `grainFactory` (`IGrainFactory`): The grain factory.
- `faultInjectionOptions` (`FaultInjectionGrainStorageOptions`): The fault injection options.
