Headless CMS and Content Managment Hub
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.
 
 
 
 
 

31 lines
1.1 KiB

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using Squidex.Infrastructure.EventSourcing;
using Squidex.Infrastructure.States;
namespace Squidex.Domain.Apps.Entities.Backup
{
public interface IBackupReader : IDisposable
{
int ReadAttachments { get; }
int ReadEvents { get; }
Task<Stream> OpenBlobAsync(string name,
CancellationToken ct = default);
Task<T> ReadJsonAsync<T>(string name,
CancellationToken ct = default);
Task<bool> HasFileAsync(string name,
CancellationToken ct = default);
IAsyncEnumerable<(string Stream, Envelope<IEvent> Event)> ReadEventsAsync(IEventStreamNames eventStreams, IEventFormatter eventFormatter,
CancellationToken ct = default);
}
}