Skip to content

Commit

Permalink
Defaulting underlying int values for enum to avoid future breaking ch…
Browse files Browse the repository at this point in the history
…anges
  • Loading branch information
Gavin van der Merwe committed Oct 31, 2017
1 parent 0673c01 commit 32ab15e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Castle.Windsor/Core/LifestyleType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,46 +22,46 @@ public enum LifestyleType
/// <summary>
/// No lifestyle specified.
/// </summary>
Undefined,
Undefined = 0,

/// <summary>
/// Singleton components are instantiated once, and shared
/// between all clients.
/// </summary>
Singleton,
Singleton = 1,

/// <summary>
/// Thread components have a unique instance per thread.
/// </summary>
Thread,
Thread = 2,

/// <summary>
/// Transient components are created on demand.
/// </summary>
Transient,
Transient = 3,

/// <summary>
/// Optimization of transient components that keeps
/// instance in a pool instead of always creating them.
/// </summary>
Pooled,
Pooled = 4,

/// <summary>
/// Any other logic to create/release components.
/// </summary>
Custom,
Custom = 6,

/// <summary>
/// Instances are reused within the scope provided.
/// </summary>
Scoped,
Scoped = 7,

/// <summary>
/// Instance lifetime and reuse scope is bound to another component further up the object graph.
/// Good scenario for this would be unit of work bound to a presenter in a two tier MVP application.
/// When specified in xml a <c>scopeRootBinderType</c> attribute must be specified pointing to a type
/// having default accessible constructor and public method matching signature of <code>Func&lt;IHandler[], IHandler&gt;</code> delegate.
/// </summary>
Bound
Bound = 8
}
}

0 comments on commit 32ab15e

Please sign in to comment.