mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 15:13:05 +00:00
CS: make replication messages typed, some offload work
This commit is contained in:
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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user