Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class DefaultApiLocalization

    Represents default localization settings for an API.

    Inheritance
    object
    DefaultApiLocalization
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.AspNetCore.Model
    Assembly: Innovt.AspNetCore.dll
    Syntax
    public class DefaultApiLocalization

    Constructors

    | Edit this page View Source

    DefaultApiLocalization()

    Initializes a new instance of the DefaultApiLocalization class with default culture settings.

    Declaration
    public DefaultApiLocalization()

    Properties

    | Edit this page View Source

    DefaultLocalizeResource

    Gets or sets the type of the default localization resource.

    Declaration
    public Type? DefaultLocalizeResource { get; set; }
    Property Value
    Type Description
    Type
    | Edit this page View Source

    RequestCulture

    Gets or sets the request culture for the API.

    Declaration
    public CultureInfo RequestCulture { get; set; }
    Property Value
    Type Description
    CultureInfo
    | Edit this page View Source

    SupportedCultures

    Gets or sets the list of supported cultures for the API.

    Declaration
    public IList<CultureInfo>? SupportedCultures { get; }
    Property Value
    Type Description
    IList<CultureInfo>

    Methods

    | Edit this page View Source

    AddSupportedCulture(string)

    Adds a supported culture with the specified name to the list of supported cultures.

    Declaration
    protected DefaultApiLocalization AddSupportedCulture(string name)
    Parameters
    Type Name Description
    string name

    The name of the supported culture (e.g., "pt-br").

    Returns
    Type Description
    DefaultApiLocalization

    The updated DefaultApiLocalization instance.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if the provided name is null.

    Extension Methods

    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX