Skip to content

Commit

Permalink
Added [Browsable(false)] on top of [EditorBrowsable(EditorBrowsableSt…
Browse files Browse the repository at this point in the history
…ate.Never)]
  • Loading branch information
jodydonetti committed Nov 12, 2022
1 parent eb126dd commit c08d117
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ZiggyCreatures.FusionCache.Chaos/FusioCacheChaosUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace ZiggyCreatures.Caching.Fusion.Chaos
/// Various utils to work with randomized controllable chaos.
/// </summary>
[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
{
Expand All @@ -17,6 +18,7 @@ public static class FusioCacheChaosUtils
/// <param name="throwProbability">The probabilty that an exception will be thrown.</param>
/// <returns><see langword="true"/> if an exception should be thrown, <see langword="false"/> otherwise.</returns>
[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)
{
Expand All @@ -28,6 +30,7 @@ public static bool ShouldCreateChaos(float throwProbability)
/// </summary>
/// <param name="throwProbability">The probabilty that an exception will be thrown.</param>
[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)
{
Expand All @@ -41,6 +44,7 @@ public static void MaybeThrow(float throwProbability)
/// <param name="maxDelay">The maximum amount of delay.</param>
/// <returns>The randomized delay.</returns>
[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)
{
Expand All @@ -53,6 +57,7 @@ public static TimeSpan RandomizeDelay(TimeSpan minDelay, TimeSpan maxDelay)
/// <param name="minDelay">The minimun amount of delay.</param>
/// <param name="maxDelay">The maximum amount of delay.</param>
[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)
{
Expand All @@ -66,6 +71,7 @@ public static void MaybeDelay(TimeSpan minDelay, TimeSpan maxDelay)
/// <param name="maxDelay">The maximum amount of delay.</param>
/// <returns>A <see cref="Task"/> instance to await.</returns>
[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)
{
Expand All @@ -80,6 +86,7 @@ public static Task MaybeDelayAsync(TimeSpan minDelay, TimeSpan maxDelay)
/// <param name="minDelay">The minimun amount of delay.</param>
/// <param name="maxDelay">The maximum amount of delay.</param>
[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)
{
Expand All @@ -95,6 +102,7 @@ public static void MaybeChaos(TimeSpan minDelay, TimeSpan maxDelay, float throwP
/// <param name="maxDelay">The maximum amount of delay.</param>
/// <returns>A <see cref="Task"/> instance to await.</returns>
[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)
{
Expand Down

0 comments on commit c08d117

Please sign in to comment.