CS: make replication messages typed, some offload work

This commit is contained in:
Rory& committed 2026-03-13 06:10:31 +01:00
1 parent 1e82f2f1f8
commit ad4b342200
16 files changed
+291 -35

No files matched your search

@@ -14,7 +14,8 @@ namespace Spacebar.GatewayOffload.Controllers;
[Route("/_spacebar/offload/gateway/LazyRequest")]
public class Op14Controller(ILogger<Op12Controller> logger, SpacebarAspNetAuthenticationService authService, SpacebarDbContext db, IServiceProvider sp) : ControllerBase {
[HttpPost]
public async IAsyncEnumerable<ReplicationMessage> DoLazyRequest([FromBody] LazyRequest payload) {
// TODO: actually return something?
public async IAsyncEnumerable<ContentlessReplicationMessage> DoLazyRequest([FromBody] LazyRequest payload) {
var user = await TraceResult.TraceAsync("getAuthUser", () => authService.GetCurrentUserAsync(Request));
var session = await TraceResult.TraceAsync("getAuthSession", () => authService.GetCurrentSessionAsync(Request));