From de530fc8ef49ea80f574942f4a2a8bba31bdb84a Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Thu, 2 May 2019 11:35:37 -0700 Subject: [PATCH] Remove `AddRange(...)` methods from `Collection` subclases - see dotnet/corefx#35772 --- .../src/Options/ApiResourceCollection.cs | 14 +------------- .../src/Options/ClientCollection.cs | 12 ------------ .../src/Options/IdentityResourceCollection.cs | 14 +------------- 3 files changed, 2 insertions(+), 38 deletions(-) diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs index 38afb60fc705..104df03cbc05 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; @@ -51,18 +51,6 @@ public ApiResource this[string key] } } - /// - /// Adds the resources in to the collection. - /// - /// The list of to add. - public void AddRange(IEnumerable resources) - { - foreach (var resource in resources) - { - Add(resource); - } - } - /// /// Adds the resources in to the collection. /// diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs index ffc180bf304c..b34e809eb3bc 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs @@ -51,18 +51,6 @@ public Client this[string key] } } - /// - /// Adds the clients in to the collection. - /// - /// The list of to add. - public void AddRange(IEnumerable clients) - { - foreach (var client in clients) - { - Add(client); - } - } - /// /// Adds the clients in to the collection. /// diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs index 22aa30344f43..e57358489c65 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using IdentityServer4.Models; @@ -51,18 +51,6 @@ public IdentityResource this[string key] } } - /// - /// Adds the identity resources in to the collection. - /// - /// The list of to add. - public void AddRange(IEnumerable identityResources) - { - foreach (var resource in identityResources) - { - Add(resource); - } - } - /// /// Adds the identity resources in to the collection. ///