From c08d11713daab976d2a3226a711eb2332bf2786c Mon Sep 17 00:00:00 2001 From: Jody Donetti Date: Sat, 12 Nov 2022 19:03:50 +0100 Subject: [PATCH] Added [Browsable(false)] on top of [EditorBrowsable(EditorBrowsableState.Never)] --- .../FusioCacheChaosUtils.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ZiggyCreatures.FusionCache.Chaos/FusioCacheChaosUtils.cs b/src/ZiggyCreatures.FusionCache.Chaos/FusioCacheChaosUtils.cs index d9cb2232..3fa5af5a 100644 --- a/src/ZiggyCreatures.FusionCache.Chaos/FusioCacheChaosUtils.cs +++ b/src/ZiggyCreatures.FusionCache.Chaos/FusioCacheChaosUtils.cs @@ -8,6 +8,7 @@ namespace ZiggyCreatures.Caching.Fusion.Chaos /// Various utils to work with randomized controllable chaos. /// [Obsolete("Please use Fusio(n)CacheChaosUtils class and methods (the method names are the same), there was a typo in the class name (sorry)", true)] + [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static class FusioCacheChaosUtils { @@ -17,6 +18,7 @@ public static class FusioCacheChaosUtils /// The probabilty that an exception will be thrown. /// if an exception should be thrown, otherwise. [Obsolete("Please use Fusio(n)CacheChaosUtils class and methods (the method names are the same), there was a typo in the class name (sorry)", true)] + [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static bool ShouldCreateChaos(float throwProbability) { @@ -28,6 +30,7 @@ public static bool ShouldCreateChaos(float throwProbability) /// /// The probabilty that an exception will be thrown. [Obsolete("Please use Fusio(n)CacheChaosUtils class and methods (the method names are the same), there was a typo in the class name (sorry)", true)] + [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static void MaybeThrow(float throwProbability) { @@ -41,6 +44,7 @@ public static void MaybeThrow(float throwProbability) /// The maximum amount of delay. /// The randomized delay. [Obsolete("Please use Fusio(n)CacheChaosUtils class and methods (the method names are the same), there was a typo in the class name (sorry)", true)] + [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static TimeSpan RandomizeDelay(TimeSpan minDelay, TimeSpan maxDelay) { @@ -53,6 +57,7 @@ public static TimeSpan RandomizeDelay(TimeSpan minDelay, TimeSpan maxDelay) /// The minimun amount of delay. /// The maximum amount of delay. [Obsolete("Please use Fusio(n)CacheChaosUtils class and methods (the method names are the same), there was a typo in the class name (sorry)", true)] + [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static void MaybeDelay(TimeSpan minDelay, TimeSpan maxDelay) { @@ -66,6 +71,7 @@ public static void MaybeDelay(TimeSpan minDelay, TimeSpan maxDelay) /// The maximum amount of delay. /// A instance to await. [Obsolete("Please use Fusio(n)CacheChaosUtils class and methods (the method names are the same), there was a typo in the class name (sorry)", true)] + [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static Task MaybeDelayAsync(TimeSpan minDelay, TimeSpan maxDelay) { @@ -80,6 +86,7 @@ public static Task MaybeDelayAsync(TimeSpan minDelay, TimeSpan maxDelay) /// The minimun amount of delay. /// The maximum amount of delay. [Obsolete("Please use Fusio(n)CacheChaosUtils class and methods (the method names are the same), there was a typo in the class name (sorry)", true)] + [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static void MaybeChaos(TimeSpan minDelay, TimeSpan maxDelay, float throwProbability) { @@ -95,6 +102,7 @@ public static void MaybeChaos(TimeSpan minDelay, TimeSpan maxDelay, float throwP /// The maximum amount of delay. /// A instance to await. [Obsolete("Please use Fusio(n)CacheChaosUtils class and methods (the method names are the same), there was a typo in the class name (sorry)", true)] + [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static Task MaybeChaosAsync(TimeSpan minDelay, TimeSpan maxDelay, float throwProbability) {