Deliver portable native Architecture B deployment and final verification

This commit is contained in:
Steffen committed 2026-10-14 16:32:20 +02:00
1 parent f451b55de1
commit 36740d2492
92 files changed
+10939 -926

No files matched your search

@@ -1,22 +1,22 @@
using System.Runtime.CompilerServices;
[assembly:InternalsVisibleTo("HealthApp")]
[assembly: InternalsVisibleTo("HealthApp")]
namespace HealthApp.Contracts;
// Only the API/access assembly issues this request-local capability after policy checks.
public sealed class AuthorizedPatientContext
{
internal AuthorizedPatientContext(Guid patientId, bool canWrite){PatientId=patientId;CanWrite=canWrite;}
public Guid PatientId {get;}
public bool CanWrite {get;}
public void RequireWrite(){if(!CanWrite)throw new UnauthorizedAccessException("Read-only scope.");}
internal AuthorizedPatientContext(Guid patientId, bool canWrite) { PatientId = patientId; CanWrite = canWrite; }
public Guid PatientId { get; }
public bool CanWrite { get; }
public void RequireWrite() { if (!CanWrite) throw new UnauthorizedAccessException("Read-only scope."); }
}
public interface ProfileQueries
{
Task<Guid?> ResolveAccountAsync(string accountId,CancellationToken ct);
Task<PatientDto?> GetAsync(AuthorizedPatientContext scope,CancellationToken ct);
Task<Guid?> ResolveAccountAsync(string accountId, CancellationToken ct);
Task<PatientDto?> GetAsync(AuthorizedPatientContext scope, CancellationToken ct);
}
public interface ProfileCommands
{
Task<PatientDto> CreateAsync(string trustedAccountId,CreatePatientRequest request,CancellationToken ct);
Task<PatientDto?> UpdateAsync(AuthorizedPatientContext scope,UpdatePatientRequest request,CancellationToken ct);
Task<PatientDto> CreateAsync(string trustedAccountId, CreatePatientRequest request, CancellationToken ct);
Task<PatientDto?> UpdateAsync(AuthorizedPatientContext scope, UpdatePatientRequest request, CancellationToken ct);
}
public sealed class ProfileAlreadyExistsException : Exception;