using GB5Shared.DTO.Framework.Login;
namespace FrameworkBLL.VersionSync;
/// Reacts to SqlWorkbench's sqlworkbench.changerequest.applied event: resolves the
/// tenant's currently-applied version via SqlWorkbench, then writes it into that specific
/// tenant's own MDBLevelSetting.BUILDVERSION. Never touches MAppVersion — that stays a
/// separate, manual, release-time write when a package is marked Released.
public interface IVersionSyncBLL
{
/// No-ops (logs and returns) for every legitimate non-error state: not yet
/// versioned, not yet registered in MSERVERCONFIG. Only throws on a real failure
/// (SqlWorkbench unreachable, the tenant write itself failing).
Task SyncVersionAsync(int clientDatabaseId, LoginDTO eventLogin, CancellationToken ct);
}