Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IUniqueIdentifyingServiceConnector

    Provides a method to retrieve an artifact's unique identifier.

    Namespace: Umbraco.Cms.Core.Deploy
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IUniqueIdentifyingServiceConnector
    Remarks

    Artifacts are uniquely identified by their Udi, however they represent elements in Umbraco that may be uniquely identified by another value. For example, a content type is uniquely identified by its alias. If someone creates a new content type, and tries to deploy it to a remote environment where a content type with the same alias already exists, both content types end up having different Udi but the same alias. By default, Deploy would fail and throw when trying to save the new content type (duplicate alias). However, if the connector also implements this interface, the situation can be detected beforehand and reported in a nicer way.

    Methods

    View Source

    GetUniqueIdentifier(IArtifact)

    Gets the unique identifier of the specified artifact.

    Declaration
    string GetUniqueIdentifier(IArtifact artifact)
    Parameters
    Type Name Description
    IArtifact artifact

    The artifact.

    Returns
    Type Description
    System.String

    The unique identifier.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetUniqueIdentifier(IArtifact)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX