Skip to content

Commit

Permalink
Xmldoc
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Aug 6, 2018
1 parent e535804 commit 3add8ae
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/Unosquare.Swan/Components/DependencyContainer.cs
Expand Up @@ -207,9 +207,12 @@ public RegisterOptions Register(Type registerType, string name = "")
/// <param name="instance">Instance of RegisterImplementation to register.</param>
/// <param name="name">Name of registration.</param>
/// <returns>RegisterOptions for fluent API.</returns>
public RegisterOptions Register(Type registerType, Type registerImplementation, object instance,
string name = "") => RegisterInternal(registerType, name,
new InstanceFactory(registerType, registerImplementation, instance));
public RegisterOptions Register(
Type registerType,
Type registerImplementation,
object instance,
string name = "")
=> RegisterInternal(registerType, name, new InstanceFactory(registerType, registerImplementation, instance));

/// <summary>
/// Creates/replaces a container class registration with a user specified factory.
Expand Down Expand Up @@ -486,7 +489,7 @@ public bool TryResolve(Type resolveType, DependencyContainerResolveOptions optio
}

/// <summary>
/// Attempts to resolve a type using the default options and given name
/// Attempts to resolve a type using the default options and given name.
/// </summary>
/// <param name="resolveType">Type to resolve.</param>
/// <param name="name">Name of registration.</param>
Expand All @@ -507,7 +510,7 @@ public bool TryResolve(Type resolveType, string name, out object resolvedType)
}

/// <summary>
/// Attempts to resolve a type using the given options and name
/// Attempts to resolve a type using the given options and name.
/// </summary>
/// <param name="resolveType">Type to resolve.</param>
/// <param name="name">Name of registration.</param>
Expand Down Expand Up @@ -558,7 +561,10 @@ public bool TryResolve(Type resolveType, Dictionary<string, object> parameters,
/// <param name="parameters">User specified constructor parameters.</param>
/// <param name="resolvedType">Resolved type or default if resolve fails.</param>
/// <returns><c>true.</c> if resolved successfully, <c>false.</c> otherwise.</returns>
public bool TryResolve(Type resolveType, string name, Dictionary<string, object> parameters,
public bool TryResolve(
Type resolveType,
string name,
Dictionary<string, object> parameters,
out object resolvedType)
{
try
Expand All @@ -581,14 +587,17 @@ public bool TryResolve(Type resolveType, Dictionary<string, object> parameters,
/// <param name="options">Resolution options.</param>
/// <param name="resolvedType">Resolved type or default if resolve fails.</param>
/// <returns><c>true.</c> if resolved successfully, <c>false.</c> otherwise.</returns>
public bool TryResolve(Type resolveType, Dictionary<string, object> parameters,
DependencyContainerResolveOptions options, out object resolvedType)
public bool TryResolve(
Type resolveType,
Dictionary<string, object> parameters,
DependencyContainerResolveOptions options,
out object resolvedType)
{
return TryResolve(resolveType, null, parameters, options, out resolvedType);
}

/// <summary>
/// Attempts to resolve a type using the supplied name, options and constructor parameters
/// Attempts to resolve a type using the supplied name, options and constructor parameters.
/// </summary>
/// <param name="resolveType">Type to resolve.</param>
/// <param name="name">Name of registration.</param>
Expand Down

0 comments on commit 3add8ae

Please sign in to comment.