// ========================================================================== // IAggregate.cs // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex Group // All rights reserved. // ========================================================================== using System; using System.Collections.Generic; using Squidex.Infrastructure.CQRS.Events; namespace Squidex.Infrastructure.CQRS { public interface IAggregate { Guid Id { get; } int Version { get; } void ApplyEvent(Envelope @event); void ClearUncommittedEvents(); ICollection> GetUncomittedEvents(); } }