Search Results for

    Show / Hide Table of Contents
    View Source

    Class MemberCacheRefresher.JsonPayload

    Represents the JSON payload for member cache refresh operations.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public class MemberCacheRefresher.JsonPayload

    Constructors

    View Source

    JsonPayload(int, string?, bool)

    Initializes a new instance of the MemberCacheRefresher.JsonPayload class.

    Declaration
    public JsonPayload(int id, string? username, bool removed)
    Parameters
    Type Name Description
    int id

    The identifier of the member.

    string username

    The username of the member.

    bool removed

    Whether the member was removed.

    View Source

    JsonPayload(int, string?, bool, bool)

    Initializes a new instance of the MemberCacheRefresher.JsonPayload class.

    Declaration
    [JsonConstructor]
    public JsonPayload(int id, string? username, bool removed, bool indexableFieldsChanged)
    Parameters
    Type Name Description
    int id

    The identifier of the member.

    string username

    The username of the member.

    bool removed

    Whether the member was removed.

    bool indexableFieldsChanged

    Whether any field that is part of the Examine value set has changed as part of this operation. When false, Examine indexing handlers will skip the re-index for this payload.

    Properties

    View Source

    Id

    Gets the identifier of the member.

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    int
    View Source

    IndexableFieldsChanged

    Gets a value indicating whether any indexable field changed as part of the originating save.

    Declaration
    public bool IndexableFieldsChanged { get; }
    Property Value
    Type Description
    bool
    Remarks

    Defaults to true for backward compatibility. Explicitly set to false on login-only updates (which do not bump UpdateDate) so that the Examine indexing handlers skip re-indexing this payload.

    View Source

    PreviousUsername

    Gets or sets the previous username of the member, if changed.

    Declaration
    public string? PreviousUsername { get; set; }
    Property Value
    Type Description
    string
    View Source

    Removed

    Gets a value indicating whether the member was removed.

    Declaration
    public bool Removed { get; }
    Property Value
    Type Description
    bool
    View Source

    Username

    Gets the username of the member.

    Declaration
    public string? Username { get; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX