Skip to content

Commit

Permalink
Hid the obsoleted RegisterCollection methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnetjunkie committed May 28, 2020
1 parent d2477a3 commit e0efef2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SimpleInjector/Container.Registration.Batch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public void RegisterSingleton(Type openGenericServiceType, IEnumerable<Assembly>
nameof(ContainerCollectionRegistrator.Register) + " instead. " +
"Will be removed in version 6.0.",
error: true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public void RegisterCollection<TService>(IEnumerable<Assembly> assemblies)
where TService : class
{
Expand Down Expand Up @@ -309,6 +310,7 @@ public void RegisterCollection<TService>(IEnumerable<Assembly> assemblies)
nameof(ContainerCollectionRegistrator.Register) + " instead. " +
"Will be removed in version 6.0.",
error: true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public void RegisterCollection(Type serviceType, params Assembly[] assemblies)
{
this.Collection.Register(serviceType, assemblies);
Expand Down Expand Up @@ -336,6 +338,7 @@ public void RegisterCollection(Type serviceType, params Assembly[] assemblies)
nameof(ContainerCollectionRegistrator.Register) + " instead. " +
"Will be removed in version 6.0.",
error: true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public void RegisterCollection(Type serviceType, IEnumerable<Assembly> assemblies)
{
this.Collection.Register(serviceType, assemblies);
Expand Down

0 comments on commit e0efef2

Please sign in to comment.