2019-05-07 21:29:37 +01:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage;
|
|
|
|
|
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
|
2017-03-23 13:24:17 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2017-03-24 12:37:44 +01:00
|
|
|
|
namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Services
|
2017-03-23 13:24:17 +01:00
|
|
|
|
{
|
|
|
|
|
public interface IIntegrationEventLogService
|
|
|
|
|
{
|
2019-05-07 21:29:37 +01:00
|
|
|
|
Task<IEnumerable<IntegrationEventLogEntry>> RetrieveEventLogsPendingToPublishAsync(Guid transactionId);
|
|
|
|
|
Task SaveEventAsync(IntegrationEvent @event, IDbContextTransaction transaction);
|
2018-10-11 17:16:31 +02:00
|
|
|
|
Task MarkEventAsPublishedAsync(Guid eventId);
|
|
|
|
|
Task MarkEventAsInProgressAsync(Guid eventId);
|
|
|
|
|
Task MarkEventAsFailedAsync(Guid eventId);
|
2017-03-23 13:24:17 +01:00
|
|
|
|
}
|
|
|
|
|
}
|