Skip to content

Commit 89958f6

Browse files
committed
Documentation
1 parent bb97774 commit 89958f6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Abstracts/IUnityContainer.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface IUnityContainer : IDisposable
2727
/// If type provided in <paramref name="typeTo"/> is already registered with container, registration creates mapping to the existing
2828
/// registration and instead will use registration for <paramref name="typeTo"/> type to create object.</remarks>
2929
/// <returns>The <see cref="IUnityContainer"/> object that this method was called on.</returns>
30-
/// <exception cref="InvalidRegistrationException"></exception>
30+
/// <exception cref="InvalidOperationException"></exception>
3131
IUnityContainer RegisterType(Type typeFrom, Type typeTo, string name, ITypeLifetimeManager lifetimeManager, params InjectionMember[] injectionMembers);
3232

3333

@@ -49,22 +49,24 @@ public interface IUnityContainer : IDisposable
4949
/// Following are the only valid options: <see cref="ContainerControlledLifetimeManager"/>, <see cref="SingletonLifetimeManager"/>, <see cref="ExternallyControlledLifetimeManager"/>
5050
/// </param>
5151
/// <returns>The <see cref="IUnityContainer"/> object that this method was called on.</returns>
52+
/// <exception cref="InvalidOperationException"></exception>
5253
IUnityContainer RegisterInstance(Type type, string name, object instance, IInstanceLifetimeManager lifetimeManager);
5354

5455

5556
/// <summary>
5657
/// Register <see cref="Type"/> factory with the container
5758
/// </summary>
5859
/// <remarks>
59-
/// This method allows to redister a <see cref="Func<IUnityContainer, Type, string, object>"/> delegate which will be called
60+
/// This method allows to redister a Func{IUnityContainer, Type, string, object} delegate which will be called
6061
/// by the container if type is requested.
6162
/// </remarks>
6263
/// <param name="type"><see cref="Type"/> to register (may be an implemented interface instead of the actual type).</param>
6364
/// <param name="name">Name for registration</param>
64-
/// <param name="factory">Predefined <code>Func&lt;IUnityContainer, Type, string, object&gt;</code> to create types</param>
65+
/// <param name="factory">Predefined <c>Func&lt;IUnityContainer, Type, string, object&gt;</c> to create types</param>
6566
/// <param name="lifetimeManager">The <see cref="LifetimeManager"/> that controls the lifetime
6667
/// of the returned instance. This manager has to derive from <see cref="IFactoryLifetimeManager"/></param>
6768
/// <returns>The <see cref="IUnityContainer"/> object that this method was called on.</returns>
69+
/// <exception cref="InvalidOperationException"></exception>
6870
IUnityContainer RegisterFactory(Type type, string name, Func<IUnityContainer, Type, string, object> factory, IFactoryLifetimeManager lifetimeManager);
6971

7072

src/Lifetime/Managers/ContainerControlledTransientManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Unity.Lifetime
44
{
55
/// <summary>
6-
/// A special lifetime manager which works like <see cref="TransienLifetimeManager"/>,
6+
/// A special lifetime manager which works like <see cref="TransientLifetimeManager"/>,
77
/// except container remembers all Disposable objects it created. Once container
88
/// is disposed all these objects are disposed as well.
99
/// </summary>

0 commit comments

Comments
 (0)