Skip to content

Commit

Permalink
Adding description to functions in ITypeRegistration interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal Klimek committed Jun 26, 2018
1 parent 23ced01 commit c2ed888
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions BoDi/BoDi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public interface IObjectContainer: IDisposable
/// </summary>
/// <typeparam name="TType">Implementation type</typeparam>
/// <typeparam name="TInterface">Interface will be resolved</typeparam>
/// <returns>An object which allows to change resolving strategy.</returns>
/// <param name="name">A name to register named instance, otherwise null.</param>
/// <exception cref="ObjectContainerException">If there was already a resolve for the <typeparamref name="TInterface"/>.</exception>
/// <remarks>
Expand Down Expand Up @@ -194,7 +195,15 @@ public interface IContainedInstance
}
public interface ITypeRegistration
{
/// <summary>
/// Changes resolving strategy to a new instance per each request.
/// </summary>
/// <returns></returns>
ITypeRegistration InstancePerRequest();
/// <summary>
/// Changes resolving strategy to a single instance per object container. This strategy is a default behaviour.
/// </summary>
/// <returns></returns>
ITypeRegistration InstancePerContext();
}

Expand Down

0 comments on commit c2ed888

Please sign in to comment.