File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed
Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 11namespace 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 }
Original file line number Diff line number Diff line change 11namespace 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 }
Original file line number Diff line number Diff line change 11namespace 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments