Class ArtifactDeployState<TArtifact, TEntity>
Represent the state of an artifact being deployed.
Namespace: Umbraco.Cms.Core.Deploy
Assembly: Umbraco.Core.dll
Syntax
public class ArtifactDeployState<TArtifact, TEntity> : ArtifactDeployState where TArtifact : IArtifact
Type Parameters
Name | Description |
---|---|
TArtifact | The type of the artifact. |
TEntity | The type of the entity. |
Constructors
View SourceArtifactDeployState(TArtifact, TEntity, IServiceConnector, Int32)
Initializes a new instance of the ArtifactDeployState<TArtifact, TEntity> class.
Declaration
public ArtifactDeployState(TArtifact art, TEntity entity, IServiceConnector connector, int nextPass)
Parameters
Type | Name | Description |
---|---|---|
TArtifact | art | The artifact. |
TEntity | entity | The entity. |
IServiceConnector | connector | The service connector deploying the artifact. |
System.Int32 | nextPass | The next pass number. |
Properties
View SourceArtifact
Gets or sets the artifact.
Declaration
public TArtifact Artifact { get; set; }
Property Value
Type | Description |
---|---|
TArtifact |
Entity
Gets or sets the entity.
Declaration
public TEntity Entity { get; set; }
Property Value
Type | Description |
---|---|
TEntity |
Methods
View SourceGetArtifactAsIArtifact()
Gets the artifact as an IArtifact.
Declaration
protected sealed override IArtifact GetArtifactAsIArtifact()
Returns
Type | Description |
---|---|
IArtifact | The artifact, as an IArtifact. |
Remarks
This is because classes that inherit from this class cannot override the Artifact property with a property that specializes the return type, and so they need to 'new' the property.