// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using Squidex.Infrastructure; using Squidex.Infrastructure.Commands; #pragma warning disable MA0048 // File name must match type name namespace Squidex.Domain.Apps.Entities.Assets.Commands { public abstract class AssetCommand : AssetCommandBase { public DomainId AssetId { get; set; } public bool DoNotScript { get; set; } public override DomainId AggregateId { get => DomainId.Combine(AppId, AssetId); } } // This command is needed as marker for middlewares. public abstract class AssetCommandBase : SquidexCommand, IAppCommand, IAggregateCommand { public NamedId AppId { get; set; } public abstract DomainId AggregateId { get; } } }