Cleanup resx (#1424)
This commit is contained in:
parent
a53bf093a7
commit
863846bb2a
|
|
@ -15,16 +15,14 @@ namespace Microsoft.AspNetCore.Authentication.Facebook
|
|||
/// </summary>
|
||||
internal static string Exception_OptionMustBeProvided
|
||||
{
|
||||
get { return GetString("Exception_OptionMustBeProvided"); }
|
||||
get => GetString("Exception_OptionMustBeProvided");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The '{0}' option must be provided.
|
||||
/// </summary>
|
||||
internal static string FormatException_OptionMustBeProvided(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
|
||||
private static string GetString(string name, params string[] formatterNames)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,32 +15,28 @@ namespace Microsoft.AspNetCore.Authentication.Google
|
|||
/// </summary>
|
||||
internal static string Exception_OptionMustBeProvided
|
||||
{
|
||||
get { return GetString("Exception_OptionMustBeProvided"); }
|
||||
get => GetString("Exception_OptionMustBeProvided");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The '{0}' option must be provided.
|
||||
/// </summary>
|
||||
internal static string FormatException_OptionMustBeProvided(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string Exception_ValidatorHandlerMismatch
|
||||
{
|
||||
get { return GetString("Exception_ValidatorHandlerMismatch"); }
|
||||
get => GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string FormatException_ValidatorHandlerMismatch()
|
||||
{
|
||||
return GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
=> GetString("Exception_ValidatorHandlerMismatch");
|
||||
|
||||
private static string GetString(string name, params string[] formatterNames)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,32 +15,28 @@ namespace Microsoft.AspNetCore.Authentication.JwtBearer
|
|||
/// </summary>
|
||||
internal static string Exception_OptionMustBeProvided
|
||||
{
|
||||
get { return GetString("Exception_OptionMustBeProvided"); }
|
||||
get => GetString("Exception_OptionMustBeProvided");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The '{0}' option must be provided.
|
||||
/// </summary>
|
||||
internal static string FormatException_OptionMustBeProvided(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string Exception_ValidatorHandlerMismatch
|
||||
{
|
||||
get { return GetString("Exception_ValidatorHandlerMismatch"); }
|
||||
get => GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string FormatException_ValidatorHandlerMismatch()
|
||||
{
|
||||
return GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
=> GetString("Exception_ValidatorHandlerMismatch");
|
||||
|
||||
private static string GetString(string name, params string[] formatterNames)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,48 +15,42 @@ namespace Microsoft.AspNetCore.Authentication.MicrosoftAccount
|
|||
/// </summary>
|
||||
internal static string Exception_MissingId
|
||||
{
|
||||
get { return GetString("Exception_MissingId"); }
|
||||
get => GetString("Exception_MissingId");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The user does not have an id.
|
||||
/// </summary>
|
||||
internal static string FormatException_MissingId()
|
||||
{
|
||||
return GetString("Exception_MissingId");
|
||||
}
|
||||
=> GetString("Exception_MissingId");
|
||||
|
||||
/// <summary>
|
||||
/// The '{0}' option must be provided.
|
||||
/// </summary>
|
||||
internal static string Exception_OptionMustBeProvided
|
||||
{
|
||||
get { return GetString("Exception_OptionMustBeProvided"); }
|
||||
get => GetString("Exception_OptionMustBeProvided");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The '{0}' option must be provided.
|
||||
/// </summary>
|
||||
internal static string FormatException_OptionMustBeProvided(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string Exception_ValidatorHandlerMismatch
|
||||
{
|
||||
get { return GetString("Exception_ValidatorHandlerMismatch"); }
|
||||
get => GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string FormatException_ValidatorHandlerMismatch()
|
||||
{
|
||||
return GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
=> GetString("Exception_ValidatorHandlerMismatch");
|
||||
|
||||
private static string GetString(string name, params string[] formatterNames)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,32 +15,28 @@ namespace Microsoft.AspNetCore.Authentication.OAuth
|
|||
/// </summary>
|
||||
internal static string Exception_OptionMustBeProvided
|
||||
{
|
||||
get { return GetString("Exception_OptionMustBeProvided"); }
|
||||
get => GetString("Exception_OptionMustBeProvided");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The '{0}' option must be provided.
|
||||
/// </summary>
|
||||
internal static string FormatException_OptionMustBeProvided(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string Exception_ValidatorHandlerMismatch
|
||||
{
|
||||
get { return GetString("Exception_ValidatorHandlerMismatch"); }
|
||||
get => GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string FormatException_ValidatorHandlerMismatch()
|
||||
{
|
||||
return GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
=> GetString("Exception_ValidatorHandlerMismatch");
|
||||
|
||||
private static string GetString(string name, params string[] formatterNames)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,96 +15,84 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
|
|||
/// </summary>
|
||||
internal static string MessageStateIsNullOrEmpty
|
||||
{
|
||||
get { return GetString("MessageStateIsNullOrEmpty"); }
|
||||
get => GetString("MessageStateIsNullOrEmpty");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// OpenIdConnectAuthenticationHandler: message.State is null or empty.
|
||||
/// </summary>
|
||||
internal static string FormatMessageStateIsNullOrEmpty()
|
||||
{
|
||||
return GetString("MessageStateIsNullOrEmpty");
|
||||
}
|
||||
=> GetString("MessageStateIsNullOrEmpty");
|
||||
|
||||
/// <summary>
|
||||
/// Unable to unprotect the message.State.
|
||||
/// </summary>
|
||||
internal static string MessageStateIsInvalid
|
||||
{
|
||||
get { return GetString("MessageStateIsInvalid"); }
|
||||
get => GetString("MessageStateIsInvalid");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unable to unprotect the message.State.
|
||||
/// </summary>
|
||||
internal static string FormatMessageStateIsInvalid()
|
||||
{
|
||||
return GetString("MessageStateIsInvalid");
|
||||
}
|
||||
=> GetString("MessageStateIsInvalid");
|
||||
|
||||
/// <summary>
|
||||
/// Message contains error: '{0}', error_description: '{1}', error_uri: '{2}'.
|
||||
/// </summary>
|
||||
internal static string MessageContainsError
|
||||
{
|
||||
get { return GetString("MessageContainsError"); }
|
||||
get => GetString("MessageContainsError");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Message contains error: '{0}', error_description: '{1}', error_uri: '{2}'.
|
||||
/// </summary>
|
||||
internal static string FormatMessageContainsError(object p0, object p1, object p2)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("MessageContainsError"), p0, p1, p2);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("MessageContainsError"), p0, p1, p2);
|
||||
|
||||
/// <summary>
|
||||
/// The Validated Security Token must be of type JwtSecurityToken, but instead its type is: '{0}'.
|
||||
/// </summary>
|
||||
internal static string ValidatedSecurityTokenNotJwt
|
||||
{
|
||||
get { return GetString("ValidatedSecurityTokenNotJwt"); }
|
||||
get => GetString("ValidatedSecurityTokenNotJwt");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The Validated Security Token must be of type JwtSecurityToken, but instead its type is: '{0}'.
|
||||
/// </summary>
|
||||
internal static string FormatValidatedSecurityTokenNotJwt(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("ValidatedSecurityTokenNotJwt"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("ValidatedSecurityTokenNotJwt"), p0);
|
||||
|
||||
/// <summary>
|
||||
/// Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{0}'."
|
||||
/// </summary>
|
||||
internal static string UnableToValidateToken
|
||||
{
|
||||
get { return GetString("UnableToValidateToken"); }
|
||||
get => GetString("UnableToValidateToken");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{0}'."
|
||||
/// </summary>
|
||||
internal static string FormatUnableToValidateToken(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("UnableToValidateToken"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("UnableToValidateToken"), p0);
|
||||
|
||||
/// <summary>
|
||||
/// Cannot process the message. Both id_token and code are missing.
|
||||
/// </summary>
|
||||
internal static string IdTokenCodeMissing
|
||||
{
|
||||
get { return GetString("IdTokenCodeMissing"); }
|
||||
get => GetString("IdTokenCodeMissing");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cannot process the message. Both id_token and code are missing.
|
||||
/// </summary>
|
||||
internal static string FormatIdTokenCodeMissing()
|
||||
{
|
||||
return GetString("IdTokenCodeMissing");
|
||||
}
|
||||
=> GetString("IdTokenCodeMissing");
|
||||
|
||||
private static string GetString(string name, params string[] formatterNames)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,32 +15,28 @@ namespace Microsoft.AspNetCore.Authentication.Twitter
|
|||
/// </summary>
|
||||
internal static string Exception_OptionMustBeProvided
|
||||
{
|
||||
get { return GetString("Exception_OptionMustBeProvided"); }
|
||||
get => GetString("Exception_OptionMustBeProvided");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The '{0}' option must be provided.
|
||||
/// </summary>
|
||||
internal static string FormatException_OptionMustBeProvided(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string Exception_ValidatorHandlerMismatch
|
||||
{
|
||||
get { return GetString("Exception_ValidatorHandlerMismatch"); }
|
||||
get => GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.
|
||||
/// </summary>
|
||||
internal static string FormatException_ValidatorHandlerMismatch()
|
||||
{
|
||||
return GetString("Exception_ValidatorHandlerMismatch");
|
||||
}
|
||||
=> GetString("Exception_ValidatorHandlerMismatch");
|
||||
|
||||
private static string GetString(string name, params string[] formatterNames)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,64 +15,56 @@ namespace Microsoft.AspNetCore.Authentication
|
|||
/// </summary>
|
||||
internal static string Exception_DefaultDpapiRequiresAppNameKey
|
||||
{
|
||||
get { return GetString("Exception_DefaultDpapiRequiresAppNameKey"); }
|
||||
get => GetString("Exception_DefaultDpapiRequiresAppNameKey");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The default data protection provider may only be used when the IApplicationBuilder.Properties contains an appropriate 'host.AppName' key.
|
||||
/// </summary>
|
||||
internal static string FormatException_DefaultDpapiRequiresAppNameKey()
|
||||
{
|
||||
return GetString("Exception_DefaultDpapiRequiresAppNameKey");
|
||||
}
|
||||
=> GetString("Exception_DefaultDpapiRequiresAppNameKey");
|
||||
|
||||
/// <summary>
|
||||
/// The state passed to UnhookAuthentication may only be the return value from HookAuthentication.
|
||||
/// </summary>
|
||||
internal static string Exception_UnhookAuthenticationStateType
|
||||
{
|
||||
get { return GetString("Exception_UnhookAuthenticationStateType"); }
|
||||
get => GetString("Exception_UnhookAuthenticationStateType");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The state passed to UnhookAuthentication may only be the return value from HookAuthentication.
|
||||
/// </summary>
|
||||
internal static string FormatException_UnhookAuthenticationStateType()
|
||||
{
|
||||
return GetString("Exception_UnhookAuthenticationStateType");
|
||||
}
|
||||
=> GetString("Exception_UnhookAuthenticationStateType");
|
||||
|
||||
/// <summary>
|
||||
/// The AuthenticationTokenProvider's required synchronous events have not been registered.
|
||||
/// </summary>
|
||||
internal static string Exception_AuthenticationTokenDoesNotProvideSyncMethods
|
||||
{
|
||||
get { return GetString("Exception_AuthenticationTokenDoesNotProvideSyncMethods"); }
|
||||
get => GetString("Exception_AuthenticationTokenDoesNotProvideSyncMethods");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The AuthenticationTokenProvider's required synchronous events have not been registered.
|
||||
/// </summary>
|
||||
internal static string FormatException_AuthenticationTokenDoesNotProvideSyncMethods()
|
||||
{
|
||||
return GetString("Exception_AuthenticationTokenDoesNotProvideSyncMethods");
|
||||
}
|
||||
=> GetString("Exception_AuthenticationTokenDoesNotProvideSyncMethods");
|
||||
|
||||
/// <summary>
|
||||
/// The '{0}' option must be provided.
|
||||
/// </summary>
|
||||
internal static string Exception_OptionMustBeProvided
|
||||
{
|
||||
get { return GetString("Exception_OptionMustBeProvided"); }
|
||||
get => GetString("Exception_OptionMustBeProvided");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The '{0}' option must be provided.
|
||||
/// </summary>
|
||||
internal static string FormatException_OptionMustBeProvided(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0);
|
||||
|
||||
private static string GetString(string name, params string[] formatterNames)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,48 +15,42 @@ namespace Microsoft.AspNetCore.Authorization
|
|||
/// </summary>
|
||||
internal static string Exception_AuthorizationPolicyEmpty
|
||||
{
|
||||
get { return GetString("Exception_AuthorizationPolicyEmpty"); }
|
||||
get => GetString("Exception_AuthorizationPolicyEmpty");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// AuthorizationPolicy must have at least one requirement.
|
||||
/// </summary>
|
||||
internal static string FormatException_AuthorizationPolicyEmpty()
|
||||
{
|
||||
return GetString("Exception_AuthorizationPolicyEmpty");
|
||||
}
|
||||
=> GetString("Exception_AuthorizationPolicyEmpty");
|
||||
|
||||
/// <summary>
|
||||
/// The AuthorizationPolicy named: '{0}' was not found.
|
||||
/// </summary>
|
||||
internal static string Exception_AuthorizationPolicyNotFound
|
||||
{
|
||||
get { return GetString("Exception_AuthorizationPolicyNotFound"); }
|
||||
get => GetString("Exception_AuthorizationPolicyNotFound");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The AuthorizationPolicy named: '{0}' was not found.
|
||||
/// </summary>
|
||||
internal static string FormatException_AuthorizationPolicyNotFound(object p0)
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, GetString("Exception_AuthorizationPolicyNotFound"), p0);
|
||||
}
|
||||
=> string.Format(CultureInfo.CurrentCulture, GetString("Exception_AuthorizationPolicyNotFound"), p0);
|
||||
|
||||
/// <summary>
|
||||
/// At least one role must be specified.
|
||||
/// </summary>
|
||||
internal static string Exception_RoleRequirementEmpty
|
||||
{
|
||||
get { return GetString("Exception_RoleRequirementEmpty"); }
|
||||
get => GetString("Exception_RoleRequirementEmpty");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// At least one role must be specified.
|
||||
/// </summary>
|
||||
internal static string FormatException_RoleRequirementEmpty()
|
||||
{
|
||||
return GetString("Exception_RoleRequirementEmpty");
|
||||
}
|
||||
=> GetString("Exception_RoleRequirementEmpty");
|
||||
|
||||
private static string GetString(string name, params string[] formatterNames)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue