Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

654 B
Raw Blame
using DotLiquid;
using Grand.Domain;
using Grand.Domain.Messages;
using Grand.Mediator;

namespace Grand.Business.Core.Events.Messages;

/// <summary>
///     A container for tokens that are added.
/// </summary>
/// <typeparam name="T">Entity type</typeparam>
public class EntityTokensAddedEvent<T> : INotification where T : ParentEntity
{
    public EntityTokensAddedEvent(T entity, Drop liquidDrop, LiquidObject liquidObject)
    {
        Entity = entity;
        LiquidDrop = liquidDrop;
        LiquidObject = liquidObject;
    }

    public T Entity { get; }

    public Drop LiquidDrop { get; }

    public LiquidObject LiquidObject { get; }
}