19 references to BreakType
Microsoft.Extensions.Caching.Hybrid.Tests (19)
UnreliableL2Tests.cs (19)
18[InlineData(BreakType.None)] 19[InlineData(BreakType.Synchronous, Log.IdCacheBackendWriteFailure)] 20[InlineData(BreakType.Asynchronous, Log.IdCacheBackendWriteFailure)] 21[InlineData(BreakType.AsynchronousYield, Log.IdCacheBackendWriteFailure)] 23public async Task WriteFailureInvisible(BreakType writeBreak, params int[] errorIds) 36if (writeBreak == BreakType.None) 54[InlineData(BreakType.None)] 55[InlineData(BreakType.Synchronous, Log.IdCacheBackendReadFailure, Log.IdCacheBackendReadFailure)] 56[InlineData(BreakType.Asynchronous, Log.IdCacheBackendReadFailure, Log.IdCacheBackendReadFailure)] 57[InlineData(BreakType.AsynchronousYield, Log.IdCacheBackendReadFailure, Log.IdCacheBackendReadFailure)] 58public async Task ReadFailureInvisible(BreakType readBreak, params int[] errorIds) 84if (readBreak == BreakType.None) 156public BreakType ReadBreak { get; set; } 157public BreakType WriteBreak { get; set; } 195private static Task? ThrowIfBrokenAsync(BreakType breakType) => ThrowIfBrokenAsync<int>(breakType); 198private static Task<T>? ThrowIfBrokenAsync<T>(BreakType breakType) 202case BreakType.Asynchronous: 204case BreakType.AsynchronousYield: 206case BreakType.None: