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.
27 lines
722 B
27 lines
722 B
// ==========================================================================
|
|
// 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<IEvent> @event);
|
|
|
|
void ClearUncommittedEvents();
|
|
|
|
ICollection<Envelope<IEvent>> GetUncomittedEvents();
|
|
}
|
|
}
|