Skip to content

Commit b362b06

Browse files
committed
Documentation
1 parent 3330803 commit b362b06

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

src/Lifetime/Abstracts/IFactoryLifetimeManager.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
namespace Unity.Lifetime
22
{
3+
/// <summary>
4+
/// This interface marks all lifetime managers compatible with
5+
/// <see cref="IUnityContainer.RegisterFactory" /> registration.
6+
/// </summary>
7+
/// <remarks>
8+
/// This interface is used for design type validation of registration compatibility.
9+
/// Each registration type only takes lifetime managers compatible with it.
10+
/// </remarks>
311
public interface IFactoryLifetimeManager
412
{
513
}

src/Lifetime/Abstracts/IInstanceLifetimeManager.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
namespace Unity.Lifetime
22
{
3+
/// <summary>
4+
/// This interface marks all lifetime managers compatible with
5+
/// <see cref="IUnityContainer.RegisterInstance" /> registration.
6+
/// </summary>
7+
/// <remarks>
8+
/// This interface is used for design type validation of registration compatibility.
9+
/// Each registration type only takes lifetime managers compatible with it.
10+
/// </remarks>
311
public interface IInstanceLifetimeManager
412
{
513
}

src/Lifetime/Abstracts/ITypeLifetimeManager.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
namespace Unity.Lifetime
22
{
3+
/// <summary>
4+
/// This interface marks all lifetime managers compatible with
5+
/// <see cref="IUnityContainer.RegisterType" /> registration.
6+
/// </summary>
7+
/// <remarks>
8+
/// This interface is used for design type validation of registration compatibility.
9+
/// Each registration type only takes lifetime managers compatible with it.
10+
/// </remarks>
311
public interface ITypeLifetimeManager
412
{
513
}

src/Lifetime/Abstracts/LifetimeManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public virtual void RemoveValue(ILifetimeContainer container = null) { }
5757
/// Type of current lifetime manager
5858
/// </summary>
5959
/// <returns>The <see cref="Type"/> of the manager.</returns>
60-
[Obsolete]
60+
[Obsolete("This property will be removed in next major release. Use GetType() instead", false)]
6161
public Type LifetimeType => GetType();
6262

6363
#endregion

0 commit comments

Comments
 (0)