Caption => DisplayName
This commit is contained in:
parent
3a8ecc7d4a
commit
551da3e558
|
|
@ -4,7 +4,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using Microsoft.Framework.Internal;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http.Authentication
|
namespace Microsoft.AspNet.Http.Authentication
|
||||||
{
|
{
|
||||||
|
|
@ -13,7 +12,7 @@ namespace Microsoft.AspNet.Http.Authentication
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class AuthenticationDescription
|
public class AuthenticationDescription
|
||||||
{
|
{
|
||||||
private const string CaptionPropertyKey = "Caption";
|
private const string DisplayNamePropertyKey = "DisplayName";
|
||||||
private const string AuthenticationSchemePropertyKey = "AuthenticationScheme";
|
private const string AuthenticationSchemePropertyKey = "AuthenticationScheme";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -50,10 +49,10 @@ namespace Microsoft.AspNet.Http.Authentication
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the display name for the authentication provider.
|
/// Gets or sets the display name for the authentication provider.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Caption
|
public string DisplayName
|
||||||
{
|
{
|
||||||
get { return GetString(CaptionPropertyKey); }
|
get { return GetString(DisplayNamePropertyKey); }
|
||||||
set { Items[CaptionPropertyKey] = value; }
|
set { Items[DisplayNamePropertyKey] = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GetString(string name)
|
private string GetString(string name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue