Route CultMesh sessions by stable Verse identity

This commit is contained in:
Meta Vens 2026-08-17 22:42:08 +02:00
commit 1fc68a4701
6 changed files with 80 additions and 21 deletions

View file

@ -39,7 +39,7 @@ public sealed class CultMeshTransportModularityTests
});
var session = await sessions.ConnectAsync(
CultMeshEndpointId.Parse("service:aetheria.daemon"),
CultMeshEndpointId.Parse("aetheria"),
CultMeshProtocols.Documents);
var response = new TaskCompletionSource<CultNetErrorMessage>(TaskCreationOptions.RunContinuationsAsynchronously);
using var subscription = session.OnCultNet<CultNetErrorMessage>(message => response.TrySetResult(message));
@ -77,7 +77,7 @@ public sealed class CultMeshTransportModularityTests
new CultMeshTcpContentTransportConnector()
});
var session = await sessions.ConnectContentAsync(CultMeshEndpointId.Parse("service:aetheria.daemon"));
var session = await sessions.ConnectContentAsync(CultMeshEndpointId.Parse("aetheria"));
using var destination = new MemoryStream();
await session.CopyChunkToAsync(artifact.Manifest.Chunks[0], destination);
@ -98,7 +98,7 @@ public sealed class CultMeshTransportModularityTests
Array.Empty<ICultMeshTransportConnector>());
Func<Task> connect = async () => await sessions.ConnectContentAsync(
CultMeshEndpointId.Parse("service:aetheria.daemon"));
CultMeshEndpointId.Parse("aetheria"));
await connect.Should().ThrowAsync<CultMeshSessionException>()
.WithMessage("*No streaming content connectors are configured*");
@ -118,7 +118,7 @@ public sealed class CultMeshTransportModularityTests
Array.Empty<ICultMeshContentTransportConnector>(),
new ICultMeshRealtimeTransportConnector[] { connector });
var session = await sessions.ConnectRealtimeAsync(
CultMeshEndpointId.Parse("service:aetheria.daemon"));
CultMeshEndpointId.Parse("aetheria"));
var sent = new CultMeshRealtimeFrame
{
ChannelId = "aetheria.entities",
@ -150,7 +150,7 @@ public sealed class CultMeshTransportModularityTests
Array.Empty<ICultMeshTransportConnector>());
Func<Task> connect = async () => await sessions.ConnectRealtimeAsync(
CultMeshEndpointId.Parse("service:aetheria.daemon"));
CultMeshEndpointId.Parse("aetheria"));
await connect.Should().ThrowAsync<CultMeshSessionException>()
.WithMessage("*No realtime state connectors are configured*");