* Amended nullability of base Deploy classes.
* Ensured ContentItemDisplay.Variants is non-nullable.
* Set IArtifactSignature.Dependencies to be non-nullable.
* Update template collection retrieval to be non-nullable.
* IMediaService.GetRootMedia to be non-nullable.
* Non-nullable collection for IMemberService.GetMembersByMemberType.
* Non-nullable collection for member role retrieval.
* Non-nullable collection for root dictionary items.
* Non-nullable collection for child dictionary items.
* Applied suggestions from code review
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
* Remove extra dot
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
(cherry picked from commit 63b77b7743)
49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
namespace Umbraco.Cms.Core.Deploy
|
|
{
|
|
/// <summary>
|
|
/// Represent the state of an artifact being deployed.
|
|
/// </summary>
|
|
/// <typeparam name="TArtifact">The type of the artifact.</typeparam>
|
|
/// <typeparam name="TEntity">The type of the entity.</typeparam>
|
|
public class ArtifactDeployState<TArtifact, TEntity> : ArtifactDeployState
|
|
where TArtifact : IArtifact
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ArtifactDeployState{TArtifact,TEntity}"/> class.
|
|
/// </summary>
|
|
public ArtifactDeployState()
|
|
{ }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ArtifactDeployState{TArtifact,TEntity}"/> class.
|
|
/// </summary>
|
|
/// <param name="art">The artifact.</param>
|
|
/// <param name="entity">The entity.</param>
|
|
/// <param name="connector">The service connector deploying the artifact.</param>
|
|
/// <param name="nextPass">The next pass number.</param>
|
|
public ArtifactDeployState(TArtifact art, TEntity? entity, IServiceConnector connector, int nextPass)
|
|
{
|
|
Artifact = art;
|
|
Entity = entity;
|
|
Connector = connector;
|
|
NextPass = nextPass;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the artifact.
|
|
/// </summary>
|
|
public new TArtifact? Artifact { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the entity.
|
|
/// </summary>
|
|
public TEntity? Entity { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
protected sealed override IArtifact? GetArtifactAsIArtifact()
|
|
{
|
|
return Artifact;
|
|
}
|
|
}
|
|
}
|