Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 1836deff6a
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.755 kB
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Collections.ObjectModel;
using DotNetOpenAuth.AspNet;
namespace Microsoft.Web.WebPages.OAuth
{
/// <summary>
/// A collection to store instances of IAuthenticationClient by keying off ProviderName.
/// </summary>
internal sealed class AuthenticationClientCollection : KeyedCollection<string, IAuthenticationClient>
{
public AuthenticationClientCollection()
: base(StringComparer.OrdinalIgnoreCase)
{
}
protected override string GetKeyForItem(IAuthenticationClient item)
{
return item.ProviderName;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.