Caption => DisplayName

This commit is contained in:
Hao Kung 2015-09-23 14:28:36 -07:00
parent 3a8ecc7d4a
commit 551da3e558
1 changed files with 4 additions and 5 deletions

View File

@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Http.Authentication
{
@ -13,7 +12,7 @@ namespace Microsoft.AspNet.Http.Authentication
/// </summary>
public class AuthenticationDescription
{
private const string CaptionPropertyKey = "Caption";
private const string DisplayNamePropertyKey = "DisplayName";
private const string AuthenticationSchemePropertyKey = "AuthenticationScheme";
/// <summary>
@ -50,10 +49,10 @@ namespace Microsoft.AspNet.Http.Authentication
/// <summary>
/// Gets or sets the display name for the authentication provider.
/// </summary>
public string Caption
public string DisplayName
{
get { return GetString(CaptionPropertyKey); }
set { Items[CaptionPropertyKey] = value; }
get { return GetString(DisplayNamePropertyKey); }
set { Items[DisplayNamePropertyKey] = value; }
}
private string GetString(string name)