// ========================================================================== // IEventStore.cs // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex Group // All rights reserved. // ========================================================================== using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Squidex.Infrastructure.CQRS.Events { public interface IEventStore { Task> GetEventsAsync(string streamName); Task AppendEventsAsync(Guid commitId, string streamName, ICollection events); Task AppendEventsAsync(Guid commitId, string streamName, int expectedVersion, ICollection events); IEventSubscription CreateSubscription(string streamFilter = null, string position = null); } }