Search Results for

    Show / Hide Table of Contents
    View Source

    Class ArtifactBase<TUdi>

    Provides a base class to all artifacts.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Deploy
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class ArtifactBase<TUdi> : IArtifact, IArtifactSignature where TUdi : Udi
    Type Parameters
    Name Description
    TUdi

    Constructors

    View Source

    ArtifactBase(TUdi, Nullable<IEnumerable<ArtifactDependency>>)

    Declaration
    protected ArtifactBase(TUdi udi, IEnumerable<ArtifactDependency>? dependencies = null)
    Parameters
    Type Name Description
    TUdi udi
    System.Nullable<IEnumerable<ArtifactDependency>> dependencies

    Properties

    View Source

    Alias

    Declaration
    public string Alias { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Checksum

    Declaration
    public string Checksum { get; }
    Property Value
    Type Description
    System.String
    View Source

    Dependencies

    Declaration
    public IEnumerable<ArtifactDependency> Dependencies { get; set; }
    Property Value
    Type Description
    IEnumerable<ArtifactDependency>
    View Source

    Name

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Udi

    Declaration
    public TUdi Udi { get; set; }
    Property Value
    Type Description
    TUdi

    Methods

    View Source

    GetChecksum()

    Declaration
    protected abstract string GetChecksum()
    Returns
    Type Description
    System.String
    View Source

    ShouldSerializeChecksum()

    Prevents the Checksum property from being serialized.

    Declaration
    public bool ShouldSerializeChecksum()
    Returns
    Type Description
    System.Boolean
    Remarks

    Note that we can't use here as that works only on fields, not properties. And we want to avoid using [JsonIgnore] as that would require an external dependency in Umbraco.Cms.Core. So using this method of excluding properties from serialized data, documented here: https://www.newtonsoft.com/json/help/html/ConditionalProperties.htm

    Explicit Interface Implementations

    View Source

    IArtifactSignature.Udi

    Declaration
    Udi IArtifactSignature.Udi { get; }
    Returns
    Type Description
    Udi
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ArtifactBase(TUdi, Nullable<IEnumerable<ArtifactDependency>>)
    • Properties
      • Alias
      • Checksum
      • Dependencies
      • Name
      • Udi
    • Methods
      • GetChecksum()
      • ShouldSerializeChecksum()
    • Explicit Interface Implementations
      • IArtifactSignature.Udi
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX