mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
// ==========================================================================
|
|
// 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<DomainId> AppId { get; set; }
|
|
|
|
public abstract DomainId AggregateId { get; }
|
|
}
|
|
}
|
|
|