Search Results for

    Show / Hide Table of Contents
    View Source

    Class NoopRequestCultureService

    A no-operation implementation of IRequestCultureService that does not track or return cultures.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class NoopRequestCultureService : IRequestCultureService

    Constructors

    View Source

    NoopRequestCultureService()

    Declaration
    public NoopRequestCultureService()

    Methods

    View Source

    GetRequestedCulture()

    Gets the requested culture from the "Accept-Language" header, if present.

    Declaration
    public string? GetRequestedCulture()
    Returns
    Type Description
    string
    View Source

    SetRequestCulture(string)

    Sets the request culture. This implementation does nothing.

    Declaration
    public void SetRequestCulture(string culture)
    Parameters
    Type Name Description
    string culture

    The culture to set.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX