# RandomErrorInjector Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.randomerrorinjector/)

## AfterStore {#afterstore-667b589d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.randomerrorinjector/methods/afterstore-667b589d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.Base/FaultInjection/RandomInjection/RandomErrorInjector.cs#L34-L38)

```csharp
public void AfterStore()
```

## BeforeStore {#beforestore-504098cc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.randomerrorinjector/methods/beforestore-504098cc/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.Base/FaultInjection/RandomInjection/RandomErrorInjector.cs#L22-L30)

```csharp
public void BeforeStore()
```
