Skip to content

Commit

Permalink
All public enums are now correctly numbered to prevent future breakin…
Browse files Browse the repository at this point in the history
…g changes.
  • Loading branch information
dotnetjunkie committed Nov 27, 2018
1 parent 8c669e5 commit 3081d83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -41,13 +41,13 @@ public enum DependencyResolverScopeOption
/// creates a new <see cref="AsyncScopedLifestyle"/> scope before returning.
/// This is the default value.
/// </summary>
UseAmbientScope,
UseAmbientScope = 0,

/// <summary>
/// A new <see cref="AsyncScopedLifestyle"/> scope is always created by
/// <see cref="IDependencyResolver.BeginScope"/> before returning.
/// </summary>
RequiresNew
RequiresNew = 1
}

/// <summary>Simple Injector <see cref="IDependencyResolver"/> implementation.</summary>
Expand Down
4 changes: 2 additions & 2 deletions src/SimpleInjector/Diagnostics/DiagnosticSeverity.enum.cs
Expand Up @@ -28,9 +28,9 @@ namespace SimpleInjector.Diagnostics
public enum DiagnosticSeverity
{
/// <summary>Information messages and tips about the configuration.</summary>
Information,
Information = 0,

/// <summary>Warning messages that are likely to cause problems in your application.</summary>
Warning
Warning = 1
}
}
4 changes: 2 additions & 2 deletions src/SimpleInjector/VerificationOption.enum.cs
Expand Up @@ -33,7 +33,7 @@ public enum VerificationOption
/// create at least one instance of each registration. An <see cref="System.InvalidOperationException"/>
/// will be thrown in case the configuration is invalid.
/// </summary>
VerifyOnly,
VerifyOnly = 0,

/// <summary>
/// Specifies that the container will run diagnostic analysis after the verification succeeded. The
Expand All @@ -43,6 +43,6 @@ public enum VerificationOption
/// <see cref="SimpleInjector.Diagnostics.Analyzer.Analyze">Analyzer.Analyze</see> or by viewing the
/// container in the Visual Studio debugger, after the verification has succeeded.
/// </summary>
VerifyAndDiagnose
VerifyAndDiagnose = 1
}
}

0 comments on commit 3081d83

Please sign in to comment.