Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ector into v4.6.x
  • Loading branch information
dotnetjunkie committed Jul 27, 2019
2 parents b9e29ca + ad09e30 commit dbd9800
Showing 1 changed file with 36 additions and 35 deletions.
71 changes: 36 additions & 35 deletions src/SimpleInjector/Container.Registration.CollectionRegistrator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,9 @@ public void AppendTo(Type serviceType, Type implementationType)
}

/// <summary>
/// Appends a new <paramref name="registration"/> to existing registrations made using one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see>
/// Appends a new <paramref name="registration"/> to a collection of registrations for the given
/// <paramref name="serviceType"/>. Calls to <b>Append</b> can both preceed and follow a call to one
/// of the <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see>
/// overloads.
/// </summary>
/// <param name="serviceType">The service type of the collection.</param>
Expand Down Expand Up @@ -419,10 +420,10 @@ public void Append(Type serviceType, Registration registration)
}

/// <summary>
/// Appends a new registration of <typeparamref name="TImplementation"/> to existing registrations
/// made for a collection of <typeparamref name="TService"/> elements using one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see>
/// overloads.
/// Appends a new registration of <typeparamref name="TImplementation"/> to a collection of
/// registrations for the given <typeparamref name="TService"/>. Calls to <b>Append</b> can both
/// preceed and follow a call to one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see> overloads.
/// </summary>
/// <typeparam name="TService">The element type of the collections to register.</typeparam>
/// <typeparam name="TImplementation">The concrete type that will be appended as registration to the
Expand All @@ -439,10 +440,10 @@ public void Append<TService, TImplementation>()
}

/// <summary>
/// Appends a new registration of <typeparamref name="TImplementation"/> to existing registrations
/// made for a collection of <typeparamref name="TService"/> elements using one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see>
/// overloads with the given <paramref name="lifestyle"/>.
/// Appends a new registration of <typeparamref name="TImplementation"/> to a collection of
/// registrations for the given <typeparamref name="TService"/> using the supplied
/// <paramref name="lifestyle"/>. Calls to <b>Append</b> can both preceed and follow a call to one of
/// the <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see> overloads.
/// </summary>
/// <typeparam name="TService">The element type of the collections to register.</typeparam>
/// <typeparam name="TImplementation">The concrete type that will be appended as registration to the
Expand All @@ -464,10 +465,10 @@ public void Append<TService, TImplementation>(Lifestyle lifestyle)
}

/// <summary>
/// Appends a new registration to existing registrations made for a collection of
/// <paramref name="serviceType"/> elements using one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see>
/// overloads.
/// Appends a new registration of <paramref name="implementationType"/> to a collection of
/// registrations for the given <paramref name="serviceType"/>. Calls to <b>Append</b> can both
/// preceed and follow a call to one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see> overloads.
/// </summary>
/// <param name="serviceType">The service type of the collection.</param>
/// <param name="implementationType">The implementation type to append.</param>
Expand Down Expand Up @@ -497,10 +498,10 @@ public void Append(Type serviceType, Type implementationType)
}

/// <summary>
/// Appends a new registration to existing registrations made for a collection of
/// <paramref name="serviceType"/> elements using one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see>
/// overloads.
/// Appends a new registration of <paramref name="implementationType"/> to a collection of
/// registrations for the given <paramref name="serviceType"/> using the supplied
/// <paramref name="lifestyle"/>. Calls to <b>Append</b> can both preceed and follow a call to one of
/// the <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see> overloads.
/// </summary>
/// <param name="serviceType">The service type of the collection.</param>
/// <param name="implementationType">The implementation type to append.</param>
Expand Down Expand Up @@ -532,12 +533,12 @@ public void Append(Type serviceType, Type implementationType, Lifestyle lifestyl

this.AppendToCollectionInternal(serviceType, registration);
}

/// <summary>
/// Appends the specified delegate <paramref name="instanceCreator"/> to existing registrations
/// made for a collection of <typeparamref name="TService"/> elements using one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see>
/// overloads.
/// Appends the specified delegate <paramref name="instanceCreator"/> to a collection of
/// registrations for the given <typeparamref name="TService"/> using the supplied
/// <paramref name="lifestyle"/>. Calls to <b>Append</b> can both preceed and follow a call to one of
/// the <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see> overloads.
/// </summary>
/// <typeparam name="TService">The element type of the collections to register.</typeparam>
/// <param name="instanceCreator">The delegate that allows building or creating new instances.</param>
Expand All @@ -562,13 +563,13 @@ public void Append<TService>(Func<TService> instanceCreator, Lifestyle lifestyle
}

/// <summary>
/// Appends a single instance to existing registrations made for a collection of
/// <typeparamref name="TService"/> elements using one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see>
/// overloads. This <paramref name="instance"/> must be thread-safe when working in a multi-threaded
/// environment.
/// Appends a single instance to a collection of registrations for the given
/// <typeparamref name="TService"/> . Calls to <b>AppendInstance</b> can both preceed and follow a
/// call to one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see> overloads.
/// This <paramref name="instance"/> must be thread-safe when working in a multi-threaded environment.
/// <b>NOTE:</b> Do note that instances supplied by this method <b>NEVER</b> get disposed by the
/// container, since the instance is assumed to outlive this container instance. If disposing is
/// container; the instance is assumed to outlive this container instance. If disposing is
/// required, use
/// <see cref="Container.RegisterSingleton{TService}(Func{TService})">RegisterSingleton&lt;TService&gt;(Func&lt;TService&gt;)</see>.
/// </summary>
Expand All @@ -589,13 +590,13 @@ public void AppendInstance<TService>(TService instance) where TService : class
}

/// <summary>
/// Appends a single instance to existing registrations made for a collection of
/// <paramref name="serviceType"/> elements using one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see>
/// overloads. This <paramref name="instance"/> must be thread-safe when working in a multi-threaded
/// environment.
/// Appends a single instance to a collection of registrations for the given
/// <paramref name="serviceType"/>. Calls to <b>AppendInstance</b> can both preceed and follow a
/// call to one of the
/// <see cref="Register(Type, IEnumerable{Type})">Container.Collections.Register</see> overloads.
/// This <paramref name="instance"/> must be thread-safe when working in a multi-threaded environment.
/// <b>NOTE:</b> Do note that instances supplied by this method <b>NEVER</b> get disposed by the
/// container, since the instance is assumed to outlive this container instance. If disposing is
/// container; the instance is assumed to outlive this container instance. If disposing is
/// required, use
/// <see cref="Container.RegisterSingleton{TService}(Func{TService})">RegisterSingleton&lt;TService&gt;(Func&lt;TService&gt;)</see>.
/// </summary>
Expand Down

0 comments on commit dbd9800

Please sign in to comment.