app/BTCPayApp.Core/Data/RemoteToLocalSyncService.cs
Kukks 864013da9b
Refactor the connection manager + sync
# Conflicts:
#	BTCPayApp.Core/Attempt2/LightningNodeService.cs
#	submodules/btcpayserver
2024-07-30 16:11:12 +02:00

30 lines
810 B
C#

using System.Text.Json;
using BTCPayApp.Core.Attempt2;
using Microsoft.EntityFrameworkCore;
using VSSProto;
namespace BTCPayApp.Core.Data;
class TriggerRecord
{
public string name { get; set; }
public string sql { get; set; }
}
public class RemoteToLocalSyncService
{
private readonly IDbContextFactory<AppDbContext> _dbContextFactory;
private readonly BTCPayConnectionManager _btcPayConnectionManager;
public RemoteToLocalSyncService(IDbContextFactory<AppDbContext> dbContextFactory,
BTCPayConnectionManager btcPayConnectionManager)
{
_dbContextFactory = dbContextFactory;
_btcPayConnectionManager = btcPayConnectionManager;
}
// on connected to btcpay, sync all the data from the remote to the local
// if we are the active node
}