consolidate Infrastructure interface and implementation classes

This commit is contained in:
sbwalker
2025-08-13 14:44:42 -04:00
parent b7ff49bdb2
commit e900d2f35a
27 changed files with 125 additions and 187 deletions

View File

@ -6,6 +6,17 @@ using System.Linq;
namespace Oqtane.Infrastructure
{
public interface ISyncManager
{
event EventHandler<SyncEvent> EntityChanged;
List<SyncEvent> GetSyncEvents(int tenantId, DateTime lastSyncDate);
void AddSyncEvent(Alias alias, string entityName, int entityId, string action);
void AddSyncEvent(int tenantId, int siteId, string entityName, int entityId, string action);
[Obsolete("AddSyncEvent(int tenantId, string entityName, int entityId, string action) is deprecated. Use AddSyncEvent(Alias alias, string entityName, int entityId, string action) instead.", false)]
void AddSyncEvent(int tenantId, string entityName, int entityId, string action);
}
public class SyncManager : ISyncManager
{
private List<SyncEvent> SyncEvents { get; set; }