-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathAppSettings.cs
25 lines (21 loc) · 930 Bytes
/
AppSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using ActualLab.Fusion.EntityFramework.LogProcessing;
using ActualLab.Fusion.EntityFramework.Operations;
using ActualLab.Resilience;
namespace Samples.HelloCart;
public static class AppSettings
{
public static readonly bool UseAutoRunner = true;
public static readonly bool EnableRandomLogMessageCommandFailures = false;
public static class Db
{
public static readonly bool UsePostgreSql = true;
public static readonly bool UseOperationLogWatchers = true;
public static readonly bool UseRedisOperationLogWatchers = true;
public static readonly bool UseOperationReprocessor = true;
public static readonly bool UseChaosMaker = true;
public static readonly ChaosMaker ChaosMaker = (
(0.1*ChaosMaker.Delay(0.75, 1)) |
(0.1*ChaosMaker.TransientError)
).Filtered("OF types", o => o is DbOperationScope or IDbLogReader).Gated();
}
}