Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ISiteIdentifierService

    Used to get and create the site identifier

    Namespace: Umbraco.Cms.Core.Telemetry
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ISiteIdentifierService

    Methods

    View Source

    TryCreateSiteIdentifier(out Guid)

    Creates the site identifier and writes it to config.

    Declaration
    bool TryCreateSiteIdentifier(out Guid createdGuid)
    Parameters
    Type Name Description
    Guid createdGuid

    asd.

    Returns
    Type Description
    System.Boolean

    True if success.

    View Source

    TryGetOrCreateSiteIdentifier(out Guid)

    Tries to get the site identifier or otherwise create it if it doesn't exist.

    Declaration
    bool TryGetOrCreateSiteIdentifier(out Guid siteIdentifier)
    Parameters
    Type Name Description
    Guid siteIdentifier

    The out parameter for the existing or create site identifier.

    Returns
    Type Description
    System.Boolean

    True if success.

    View Source

    TryGetSiteIdentifier(out Guid)

    Tries to get the site identifier

    Declaration
    bool TryGetSiteIdentifier(out Guid siteIdentifier)
    Parameters
    Type Name Description
    Guid siteIdentifier
    Returns
    Type Description
    System.Boolean

    True if success.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • TryCreateSiteIdentifier(out Guid)
      • TryGetOrCreateSiteIdentifier(out Guid)
      • TryGetSiteIdentifier(out Guid)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX