Skip to content

Commit

Permalink
docs: Adding descriptions
Browse files Browse the repository at this point in the history
Fixed #154
  • Loading branch information
ENikS committed Jun 3, 2020
1 parent 5852c1d commit 7f320b0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/Dependency/Resolution/Abstracts/ResolverOverride.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,23 @@ public abstract class ResolverOverride : IResolve

#region Constructors

/// <summary>
/// This constructor is used when no target is required
/// </summary>
/// <param name="name">Name of the dependency</param>
/// <param name="value">Value to pass to resolver</param>
protected ResolverOverride(string name, object value)
{
Name = name;
Value = value;
}

/// <summary>
/// This constructor is used with targeted overrides
/// </summary>
/// <param name="target"><see cref="Type"/> of the target</param>
/// <param name="name">Name of the dependency</param>
/// <param name="value">Value to pass to resolver</param>
protected ResolverOverride(Type target, string name, object value)
{
Target = target;
Expand All @@ -38,8 +49,9 @@ protected ResolverOverride(Type target, string name, object value)
#region Type Based Override

/// <summary>
/// Wrap this resolver in one that verifies the type of the object being built.
/// This allows you to narrow any override down to a specific type easily.
/// This method adds target information to the override. Only targeted
/// <see cref="Type"/> will be overriden even if other dependencies match
/// the type of the name of the override.
/// </summary>
/// <typeparam name="T">Type to constrain the override to.</typeparam>
/// <returns>The new override.</returns>
Expand All @@ -50,8 +62,9 @@ public ResolverOverride OnType<T>()
}

/// <summary>
/// Wrap this resolver in one that verifies the type of the object being built.
/// This allows you to narrow any override down to a specific type easily.
/// This method adds target information to the override. Only targeted
/// <see cref="Type"/> will be overriden even if other dependencies match
/// the type of the name of the override.
/// </summary>
/// <param name="targetType">Type to constrain the override to.</param>
/// <returns>The new override.</returns>
Expand Down

0 comments on commit 7f320b0

Please sign in to comment.