fix(livestreamassist): migrate WebSocket API to Kestrel

Replace Fleck with pinned in-process Kestrel packages and explicit runtime packaging. Fix connection lifetimes, deadlines, admission accounting, and reflection validation.

Add production transport regressions and update the migration guidance with remaining Unity/LAN acceptance gates.
This commit is contained in:
soarqin committed 2026-09-17 20:53:05 +08:00
1 parent 94254b8c28
commit e95c832e03
20 files changed
+3098 -480

No files matched your search

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<!-- This desktop harness loads Unity metadata, but executes against the Windows CLR. -->
<dependentAssembly>
<assemblyIdentity name="netstandard" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
@@ -0,0 +1,532 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Sockets;
using System.Net.WebSockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using LiveStreamAssist.Api;
using Newtonsoft.Json.Linq;
namespace WebSocketTransportCheck;
static class ProductionChecks
{
static int _failed;
[ThreadStatic] static bool _producing;
public static async Task<int> Run()
{
global::LiveStreamAssist.LiveStreamAssist.Logger.LogEvent += (_, entry) => Console.WriteLine(entry.Data);
await DisconnectWakesSender();
await QueueOverflowReleasesAdmission();
await StopBeforeStart();
NullParameters();
await ActiveSendRetainsAdmission();
await SendDeadlineIncludesQueueTime();
await ExecutingWorkTimesOut();
await SessionCancellationKeepsNewWork();
await PhysicalQueueRemainsBounded();
await OversizedResult();
await NetworkLifetime();
await StartupRaces();
Console.WriteLine(_failed == 0 ? "OK production checks" : $"FAILED {_failed} production checks");
return _failed == 0 ? 0 : 1;
}
static WebSocketApiServer CreateServer() => new WebSocketApiServer(IPAddress.Loopback, 0, "test",
() => GameVersionSnapshot.Empty, () => new SessionSnapshot(0, null), null);
static async Task DisconnectWakesSender()
{
var server = CreateServer();
using var connection = new ApiConnection(server);
using (var socket = new TestSocket())
using (var cancel = new CancellationTokenSource())
{
connection.Attach(socket);
var sending = connection.RunSendLoop(socket, cancel.Token);
connection.NotifyDisconnected();
Check(await Task.WhenAny(sending, Task.Delay(500)) == sending, "disconnect wakes idle sender");
cancel.Cancel();
await sending;
}
await server.StopAsync();
}
static async Task QueueOverflowReleasesAdmission()
{
var server = CreateServer();
server.Start();
using var connection = new ApiConnection(server);
using (var socket = new TestSocket())
{
connection.Attach(socket);
for (var i = 0; i < ApiLimits.MaxPendingRequestsPerConnection; i++)
Check(connection.TryAdmit("held-" + i, out _, out _) != null, "admit held request " + i);
for (var i = 0; i <= ApiLimits.MaxPendingRequestsPerConnection; i++)
connection.EnqueueError(null, ApiErrors.ParseError());
connection.NotifyDisconnected();
var available = 0;
while (server.TryIncrementPending()) available++;
Check(available == ApiLimits.MaxPendingRequests, "overflow releases every global admission slot");
while (available-- > 0) server.DecrementPending();
await connection.CloseCompletion;
}
await server.StopAsync();
}
static async Task StopBeforeStart()
{
var server = CreateServer();
await server.StopAsync();
server.Start();
var admitted = server.TryIncrementPending();
Check(!admitted, "stopped owner cannot start a listener later");
if (admitted) server.DecrementPending();
await server.StopAsync();
}
static void NullParameters()
{
var parsed = ApiProtocol.TryParseMessage(
"{\"jsonrpc\":\"2.0\",\"id\":\"null\",\"method\":\"system.ping\",\"params\":null}",
out _, out var error, out _);
Check(!parsed && error?.Kind == "INVALID_PARAMS", "explicit null params is not omission");
foreach (var name in new[] { "path", "select", "offset", "limit" })
{
var request = new ApiRequest
{
Method = ApiProtocol.MethodRead,
Params = new JObject { ["root"] = "history", [name] = JValue.CreateNull() }
};
Check(!ApiProtocol.TryParseDataCall(request, out _, out error) && error.Kind == "INVALID_PARAMS",
"explicit null " + name + " is rejected");
}
}
static async Task ActiveSendRetainsAdmission()
{
var server = CreateServer();
await server.StartAsync();
using var connection = new ApiConnection(server);
using var socket = new TestSocket();
var release = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
socket.Sending = _ => release.Task;
connection.Attach(socket);
var sending = connection.RunSendLoop(socket, CancellationToken.None);
try
{
var pending = connection.TryAdmit("held", out _, out _);
_producing = true;
try { pending.TryCompleteResult(new SerializationProbe()); }
finally { _producing = false; }
await Bounded(socket.SendStarted.Task);
Check(JObject.Parse(Encoding.UTF8.GetString(socket.Payload))["result"]?["Value"]?.Value<int>() == 42,
"serialization does not run inline in the producer");
Check(connection.TryAdmit("held", out var duplicate, out _) == null && duplicate,
"active send retains the request ID");
for (var i = 0; i < ApiLimits.MaxPendingRequestsPerConnection - 1; i++)
connection.EnqueueError(null, ApiErrors.ParseError());
Check(!connection.CanSendBusy(), "active send counts against the bounded output queue");
connection.EnqueueError(null, ApiErrors.ParseError());
Check(!connection.IsOpen, "output overflow starts connection closure");
}
finally
{
release.TrySetResult(true);
connection.NotifyDisconnected();
await Bounded(sending);
await connection.CloseCompletion;
await server.StopAsync();
}
}
static async Task SendDeadlineIncludesQueueTime()
{
var server = CreateServer();
using var connection = new ApiConnection(server);
using var socket = new TestSocket();
var first = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
var second = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
var calls = 0;
socket.Sending = token =>
{
if (Interlocked.Increment(ref calls) == 1) return first.Task;
second.TrySetResult(true);
return Task.Delay(Timeout.Infinite, token);
};
connection.Attach(socket);
var sending = connection.RunSendLoop(socket, CancellationToken.None);
try
{
connection.EnqueueError(null, ApiErrors.ParseError());
await Bounded(socket.SendStarted.Task);
connection.EnqueueError(null, ApiErrors.ParseError());
await Task.Delay(ApiLimits.RequestTimeoutMs - 750);
first.TrySetResult(true);
await Bounded(second.Task);
Check(await Task.WhenAny(sending, Task.Delay(2000)) == sending,
"queued time is deducted from the active-send deadline");
}
finally
{
first.TrySetResult(true);
connection.NotifyDisconnected();
await Bounded(sending);
await server.StopAsync();
}
}
static async Task ExecutingWorkTimesOut()
{
var server = CreateServer();
using var connection = new ApiConnection(server);
using var entered = new ManualResetEventSlim();
using var release = new ManualResetEventSlim();
var context = new QueuedContext();
long now = 0;
var dispatcher = new MainThreadDispatcher(context, new object(), _ =>
{
entered.Set();
if (!release.Wait(5000)) throw new TimeoutException("Held executor was not released.");
return "late result";
}, () => Interlocked.Read(ref now), () => 1);
var pending = new PendingRequest { Connection = connection, Id = "running" };
dispatcher.TryEnqueue(new GameWork { Pending = pending, DeadlineMs = 10 });
var execution = Task.Run(context.RunOne);
try
{
Check(entered.Wait(2000), "game-work executor entered");
Interlocked.Exchange(ref now, 10);
var completed = await Task.WhenAny(pending.Completion, Task.Delay(1500)) == pending.Completion;
Check(completed && pending.Completion.Result.Error?.Kind == "REQUEST_TIMEOUT",
"watchdog completes a request while its executor is blocked");
}
finally
{
release.Set();
await Bounded(execution);
dispatcher.Stop();
await server.StopAsync();
}
Check(pending.Completion.Result.Error?.Kind == "REQUEST_TIMEOUT", "late executor result cannot replace timeout");
}
static async Task SessionCancellationKeepsNewWork()
{
var server = CreateServer();
using var connection = new ApiConnection(server);
var context = new QueuedContext();
var dispatcher = new MainThreadDispatcher(context, new object(), _ => "current", () => 0, () => 1);
try
{
var old = new PendingRequest { Connection = connection };
var current = new PendingRequest { Connection = connection };
dispatcher.TryEnqueue(new GameWork { Pending = old, Generation = 1, DeadlineMs = 10 });
dispatcher.TryEnqueue(new GameWork { Pending = current, Generation = 2, DeadlineMs = 10 });
dispatcher.CancelQueued(work => work.Generation == 2 ? null : ApiErrors.SessionChanged());
context.RunOne();
Check(old.Completion.Result.Error?.Kind == "SESSION_CHANGED" && Equals(current.Completion.Result.Result, "current"),
"session invalidation preserves work admitted into the new session");
}
finally
{
dispatcher.Stop();
await server.StopAsync();
}
}
static async Task PhysicalQueueRemainsBounded()
{
var server = CreateServer();
using var connection = new ApiConnection(server);
var dispatcher = new MainThreadDispatcher(new QueuedContext(), new object(), _ => null, () => 0, () => 1);
try
{
for (var i = 0; i < ApiLimits.MaxPendingRequests; i++)
if (!dispatcher.TryEnqueue(new GameWork { Pending = new PendingRequest { Connection = connection }, DeadlineMs = 1 }))
throw new InvalidOperationException("Physical queue rejected work before its limit.");
Check(!dispatcher.TryEnqueue(new GameWork()), "physical game-work queue rejects overflow");
connection.NotifyDisconnected();
await Task.Delay(750);
using var next = new ApiConnection(server);
Check(dispatcher.TryEnqueue(new GameWork { Pending = new PendingRequest { Connection = next }, DeadlineMs = 1 }),
"watchdog reclaims canceled physical queue entries without pumping Unity");
}
finally
{
dispatcher.Stop();
await server.StopAsync();
}
}
static async Task OversizedResult()
{
var server = CreateServer();
await server.StartAsync();
using var connection = new ApiConnection(server);
using var socket = new TestSocket();
connection.Attach(socket);
var sending = connection.RunSendLoop(socket, CancellationToken.None);
try
{
connection.TryAdmit("large", out _, out _).TryCompleteResult(new string('x', ApiLimits.MaxResponseBytes));
await Bounded(socket.SendStarted.Task);
var response = JObject.Parse(Encoding.UTF8.GetString(socket.Payload));
Check(response["error"]?["data"]?["kind"]?.Value<string>() == "LIMIT_EXCEEDED",
"bounded serialization returns LIMIT_EXCEEDED");
}
finally
{
connection.NotifyDisconnected();
await Bounded(sending);
await connection.CloseCompletion;
await server.StopAsync();
}
}
static async Task NetworkLifetime()
{
var port = FreePort();
WebSocketApiServer server = null;
var dispatcher = new MainThreadDispatcher(new QueuedContext(), new object(), _ => ApiErrors.GameNotReady(),
() => server.NowMs, () => 1);
server = new WebSocketApiServer(IPAddress.Loopback, port, "test", () => GameVersionSnapshot.Empty,
() => new SessionSnapshot(0, null), dispatcher);
var uri = new Uri("ws://127.0.0.1:" + port + ApiLimits.Path);
await server.StartAsync();
try
{
using (var http = new HttpClient())
using (var cancel = new CancellationTokenSource(5000))
using (var response = await http.GetAsync("http://127.0.0.1:" + port + "/nope", cancel.Token))
Check(response.StatusCode == HttpStatusCode.NotFound, "wrong route is rejected before upgrade");
using (var client = await Connect(uri))
{
await Send(client, "{\"jsonrpc\":\"2.0\",\"id\":\"fragment\",", false);
await Send(client, "\"method\":\"system.ping\"}");
var response = await ReceiveJson(client);
Check(response["id"]?.Value<string>() == "fragment" && response["result"]?["serverTimeUtc"] != null,
"production transport reassembles fragmented JSON");
await Close(client);
}
using (var client = await Connect(uri))
{
using var cancel = new CancellationTokenSource(5000);
await client.SendAsync(new ArraySegment<byte>(new byte[] { 1 }), WebSocketMessageType.Binary, true, cancel.Token);
await ExpectClose(client, ApiLimits.CloseUnsupportedData);
}
using (var client = await Connect(uri))
{
using var cancel = new CancellationTokenSource(5000);
await client.SendAsync(new ArraySegment<byte>(new byte[] { 0xff }), WebSocketMessageType.Text, true, cancel.Token);
await ExpectClose(client, ApiLimits.CloseInvalidPayload);
}
using (var client = await Connect(uri))
{
await Send(client, new string('x', ApiLimits.MaxRequestBytes + 1));
await ExpectClose(client, ApiLimits.CloseMessageTooBig);
}
using (var client = await Connect(uri))
{
await Send(client, "{\"jsonrpc\":\"2.0\",\"id\":\"held\",\"method\":\"data.roots\"}");
await Send(client, "{\"jsonrpc\":\"2.0\",\"id\":\"held\",\"method\":\"system.ping\",\"params\":[]}");
await ExpectClose(client, ApiLimits.ClosePolicyViolation);
}
using (var client = await Connect(uri))
{
await Send(client, "{\"jsonrpc\":\"2.0\",\"id\":\"blocked\",\"method\":\"data.roots\"}");
await Send(client, "{\"jsonrpc\":\"2.0\",\"id\":\"ping\",\"method\":\"system.ping\"}");
Check((await ReceiveJson(client))["id"]?.Value<string>() == "ping", "system ping bypasses blocked game work");
var timeout = await ReceiveJson(client);
Check(timeout["id"]?.Value<string>() == "blocked" &&
timeout["error"]?["data"]?["kind"]?.Value<string>() == "REQUEST_TIMEOUT",
"blocked pump returns a network timeout response");
await Close(client);
}
using (var client = await Connect(uri))
using (var cancel = new CancellationTokenSource(ApiLimits.RequestTimeoutMs + 2500))
{
await Send(client, "", false);
await Send(client, "{", false);
var closed = false;
try
{
var result = await client.ReceiveAsync(new ArraySegment<byte>(new byte[1024]), cancel.Token);
closed = result.MessageType == WebSocketMessageType.Close;
}
catch (WebSocketException) { closed = !cancel.IsCancellationRequested; }
catch (OperationCanceledException) { }
Check(closed, "stalled fragmented message expires without another receive completing");
}
using (var client = await Connect(uri))
{
var stopped = server.StopAsync();
await ExpectClose(client, ApiLimits.CloseGoingAway);
await Bounded(stopped, 7000);
}
}
finally
{
dispatcher.Stop();
await server.StopAsync();
}
var rebound = new TcpListener(IPAddress.Loopback, port);
rebound.Start();
rebound.Stop();
Check(true, "shutdown releases the listener port");
}
static async Task StartupRaces()
{
for (var i = 0; i < 4; i++)
{
var server = CreateServer();
var startup = server.StartAsync();
var stopped = server.StopAsync();
try { await startup; }
catch (OperationCanceledException) { }
await Bounded(stopped, 7000);
Check(!server.TryIncrementPending(), "stop during startup leaves no live owner " + i);
}
var listener = new TcpListener(IPAddress.Loopback, 0);
listener.Start();
var occupied = new WebSocketApiServer(IPAddress.Loopback, ((IPEndPoint)listener.LocalEndpoint).Port, "test",
() => GameVersionSnapshot.Empty, () => new SessionSnapshot(0, null), null);
try
{
try
{
await occupied.StartAsync();
Check(false, "occupied port rejects startup");
}
catch (IOException) { Check(true, "occupied port rejects startup"); }
await Bounded(occupied.StopAsync(), 7000);
}
finally { listener.Stop(); }
}
static int FreePort()
{
var listener = new TcpListener(IPAddress.Loopback, 0);
listener.Start();
var port = ((IPEndPoint)listener.LocalEndpoint).Port;
listener.Stop();
return port;
}
static async Task Bounded(Task task, int milliseconds = 2000)
{
if (await Task.WhenAny(task, Task.Delay(milliseconds)) != task)
throw new TimeoutException("Production check did not complete within its deadline.");
await task;
}
static async Task<ClientWebSocket> Connect(Uri uri)
{
var client = new ClientWebSocket();
using var cancel = new CancellationTokenSource(5000);
try { await client.ConnectAsync(uri, cancel.Token); }
catch { client.Dispose(); throw; }
return client;
}
static async Task Send(ClientWebSocket client, string text, bool end = true)
{
using var cancel = new CancellationTokenSource(5000);
await client.SendAsync(new ArraySegment<byte>(Encoding.UTF8.GetBytes(text)), WebSocketMessageType.Text, end, cancel.Token);
}
static async Task<JObject> ReceiveJson(ClientWebSocket client)
{
using var cancel = new CancellationTokenSource(7000);
var buffer = new byte[ApiLimits.MaxResponseBytes];
var used = 0;
WebSocketReceiveResult result;
do
{
if (used == buffer.Length) throw new InvalidDataException("Response exceeded its limit.");
result = await client.ReceiveAsync(new ArraySegment<byte>(buffer, used, buffer.Length - used), cancel.Token);
if (result.MessageType != WebSocketMessageType.Text) throw new InvalidDataException("Expected a JSON response.");
used += result.Count;
} while (!result.EndOfMessage);
return JObject.Parse(Encoding.UTF8.GetString(buffer, 0, used));
}
static async Task ExpectClose(ClientWebSocket client, int code)
{
using var cancel = new CancellationTokenSource(7000);
var result = await client.ReceiveAsync(new ArraySegment<byte>(new byte[1024]), cancel.Token);
Check(result.MessageType == WebSocketMessageType.Close && (int?)result.CloseStatus == code, "WebSocket close " + code);
await Close(client);
}
static async Task Close(ClientWebSocket client)
{
using var cancel = new CancellationTokenSource(5000);
await client.CloseAsync(WebSocketCloseStatus.NormalClosure, "", cancel.Token);
}
static void Check(bool condition, string name)
{
Console.WriteLine((condition ? "ok " : "fail ") + name);
if (!condition) _failed++;
}
sealed class TestSocket : WebSocket
{
WebSocketState _state = WebSocketState.Open;
public byte[] Payload;
public readonly TaskCompletionSource<bool> SendStarted = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
public Func<CancellationToken, Task> Sending = _ => Task.CompletedTask;
public override WebSocketCloseStatus? CloseStatus => null;
public override string CloseStatusDescription => null;
public override WebSocketState State => _state;
public override string SubProtocol => null;
public override void Abort() => _state = WebSocketState.Aborted;
public override void Dispose() => _state = WebSocketState.Closed;
public override Task CloseAsync(WebSocketCloseStatus status, string description, CancellationToken token)
{
_state = WebSocketState.Closed;
return Task.CompletedTask;
}
public override Task CloseOutputAsync(WebSocketCloseStatus status, string description, CancellationToken token)
{
_state = WebSocketState.CloseSent;
return Task.CompletedTask;
}
public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken token) =>
throw new NotSupportedException();
public override Task SendAsync(ArraySegment<byte> buffer, WebSocketMessageType type, bool end, CancellationToken token)
{
Payload = new byte[buffer.Count];
Buffer.BlockCopy(buffer.Array, buffer.Offset, Payload, 0, buffer.Count);
SendStarted.TrySetResult(true);
return Sending(token);
}
}
sealed class SerializationProbe
{
public int Value => _producing ? throw new InvalidOperationException("Inline serialization") : 42;
}
sealed class QueuedContext : SynchronizationContext
{
readonly Queue<Action> _work = new Queue<Action>();
public override void Post(SendOrPostCallback callback, object state)
{
lock (_work) _work.Enqueue(() => callback(state));
}
public void RunOne()
{
Action work;
lock (_work) work = _work.Dequeue();
work();
}
}
}
@@ -0,0 +1,157 @@
using System;
using System.Net;
using System.Net.WebSockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets;
using Microsoft.AspNetCore.WebSockets;
namespace WebSocketTransportCheck;
static class Program
{
static int Main(string[] args)
{
Console.OutputEncoding = new UTF8Encoding(false);
if (Array.IndexOf(args, "--regression") >= 0)
return ProductionChecks.Run().GetAwaiter().GetResult();
var port = 18081;
var echo = false;
foreach (var arg in args)
{
if (arg == "--echo") echo = true;
else if (arg.StartsWith("--port=", StringComparison.Ordinal) &&
int.TryParse(arg.Substring(7), out var p))
port = p;
}
using var host = BuildHost(IPAddress.Loopback, port);
Console.WriteLine("transport=" + typeof(SocketTransportFactory).Assembly.FullName);
Console.WriteLine("transportLocation=" + typeof(SocketTransportFactory).Assembly.Location);
Console.WriteLine("websockets=" + typeof(WebSocketMiddleware).Assembly.FullName);
Console.WriteLine("websocketsLocation=" + typeof(WebSocketMiddleware).Assembly.Location);
Console.WriteLine("kestrel=" + typeof(KestrelServer).Assembly.FullName);
Console.WriteLine("kestrelLocation=" + typeof(KestrelServer).Assembly.Location);
Console.WriteLine("listening=ws://127.0.0.1:" + port + "/echo");
host.Start();
if (!echo)
{
RunClient(port).GetAwaiter().GetResult();
Console.WriteLine("OK");
return 0;
}
Console.WriteLine("echo running; Ctrl+C to stop");
using var exit = new ManualResetEvent(false);
Console.CancelKeyPress += (_, e) =>
{
e.Cancel = true;
exit.Set();
};
exit.WaitOne();
return 0;
}
internal static IWebHost BuildHost(IPAddress address, int port)
{
return new WebHostBuilder()
.UseSetting(WebHostDefaults.PreventHostingStartupKey, "true")
.UseKestrel(o =>
{
o.Listen(address, port);
o.AddServerHeader = false;
o.Limits.MaxConcurrentConnections = 8;
o.Limits.MaxConcurrentUpgradedConnections = 8;
o.Limits.MaxRequestHeadersTotalSize = 16 * 1024;
o.Limits.RequestHeadersTimeout = TimeSpan.FromSeconds(5);
o.Limits.MaxRequestBodySize = 1024;
})
.UseSockets()
.Configure(app =>
{
app.UseWebSockets(new WebSocketOptions { ReceiveBufferSize = 4096 });
app.Run(Handle);
})
.Build();
}
static async Task Handle(HttpContext context)
{
if (!string.Equals(context.Request.Path.Value, "/echo", StringComparison.Ordinal))
{
context.Response.StatusCode = 404;
return;
}
if (!context.WebSockets.IsWebSocketRequest)
{
context.Response.StatusCode = 400;
return;
}
using (var ws = await context.WebSockets.AcceptWebSocketAsync())
{
Console.WriteLine("websocketType=" + ws.GetType().FullName);
Console.WriteLine("websocketAssembly=" + ws.GetType().Assembly.FullName);
using var lifetime = CancellationTokenSource.CreateLinkedTokenSource(context.RequestAborted);
var buffer = new byte[4096];
var payload = new byte[65536];
var used = 0;
while (ws.State == WebSocketState.Open)
{
var result = await ws.ReceiveAsync(new ArraySegment<byte>(buffer), lifetime.Token);
if (result.MessageType == WebSocketMessageType.Close)
{
lifetime.CancelAfter(5000);
await ws.CloseAsync(WebSocketCloseStatus.NormalClosure, "", lifetime.Token);
return;
}
if (used + result.Count > payload.Length)
{
lifetime.CancelAfter(5000);
await ws.CloseAsync(WebSocketCloseStatus.MessageTooBig, "", lifetime.Token);
return;
}
Buffer.BlockCopy(buffer, 0, payload, used, result.Count);
used += result.Count;
if (!result.EndOfMessage) continue;
await ws.SendAsync(new ArraySegment<byte>(payload, 0, used), result.MessageType, true,
lifetime.Token);
used = 0;
}
}
}
static async Task RunClient(int port)
{
using (var client = new ClientWebSocket())
using (var timeout = new CancellationTokenSource(5000))
{
await client.ConnectAsync(new Uri("ws://127.0.0.1:" + port + "/echo"), timeout.Token);
var payload = Encoding.UTF8.GetBytes("ping");
await client.SendAsync(new ArraySegment<byte>(payload), WebSocketMessageType.Text, false,
timeout.Token);
await client.SendAsync(new ArraySegment<byte>(new byte[0]), WebSocketMessageType.Text, true,
timeout.Token);
var received = new byte[payload.Length];
var used = 0;
WebSocketReceiveResult result;
do
{
result = await client.ReceiveAsync(new ArraySegment<byte>(received, used, received.Length - used), timeout.Token);
if (result.MessageType != WebSocketMessageType.Text) throw new InvalidOperationException("Expected an echo response.");
used += result.Count;
} while (!result.EndOfMessage && used < received.Length);
if (!result.EndOfMessage || used != payload.Length || Encoding.UTF8.GetString(received) != "ping")
throw new InvalidOperationException("Echo response did not match the fragmented message.");
await client.CloseAsync(WebSocketCloseStatus.NormalClosure, "", timeout.Token);
}
}
}
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<AssemblyName>WebSocketTransportCheck</AssemblyName>
<RootNamespace>WebSocketTransportCheck</RootNamespace>
<BepInExPluginGuid>org.soardev.livestreamassist.transportcheck</BepInExPluginGuid>
<PackPreloaderTargetDir>none</PackPreloaderTargetDir>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\LiveStreamAssist.csproj" />
<Reference Include="System.Net.Http" />
</ItemGroup>
<!-- Desktop checks need the CLR's 2.0 facade for Kestrel, not Unity's Mono 2.1 type forwarders. -->
<Target Name="KeepRuntimeSpecificFacades" BeforeTargets="GenerateBindingRedirects">
<ItemGroup>
<SuggestedBindingRedirects Remove="netstandard,*" />
</ItemGroup>
</Target>
<Target Name="CopyGameFacades" AfterTargets="Build">
<Copy SourceFiles="@(ReferencePath)" DestinationFolder="$(TargetDir)"
Condition="'%(ReferencePath.Filename)' == 'BepInEx'" />
<Exec Command="powershell.exe -NoProfile -ExecutionPolicy Bypass -File &quot;$(MSBuildThisFileDirectory)..\ReflectionReaderCheck\Copy-GameFacades.ps1&quot; -TargetDir &quot;$(TargetDir).&quot;" />
</Target>
</Project>
@@ -0,0 +1,655 @@
{
"version": 1,
"dependencies": {
".NETFramework,Version=v4.7.2": {
"BepInEx.Core": {
"type": "Direct",
"requested": "[5.*, )",
"resolved": "5.4.21",
"contentHash": "NMUPlbHTTfJ+qIQCI90uIvjuUQ4wnwt4cpRsK3ItBh1DhsWFzAHXNiZjBxZkPysljEKQ2iu89sxMTga4bxBXVQ==",
"dependencies": {
"BepInEx.BaseLib": "5.4.20",
"HarmonyX": "2.7.0"
}
},
"BepInEx.PluginInfoProps": {
"type": "Direct",
"requested": "[1.*, )",
"resolved": "1.1.0",
"contentHash": "RqM3aaGs8Hc2m0D+8aSt9mv09rCMYNIF35NB3D6KA2zSpcXJh/9ZVWrPlIUJfA8KYzodSWcCMUexEW24fjwR3w=="
},
"Microsoft.NETFramework.ReferenceAssemblies": {
"type": "Direct",
"requested": "[1.0.3, )",
"resolved": "1.0.3",
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies.net472": "1.0.3"
}
},
"UnityEngine.Modules": {
"type": "Direct",
"requested": "[2022.3.62, )",
"resolved": "2022.3.62",
"contentHash": "zpu5dELUCFt7Rvvzp50iTrfVusJg+2gmlcaytGEoHYuIP+AOv57X272czjp+sA8N1onPo/IiHFnOEFtT9rLJBA=="
},
"BepInEx.BaseLib": {
"type": "Transitive",
"resolved": "5.4.20",
"contentHash": "0bXgYxbCEN2Ixp3kiFEhyw+RASeFQeg/ww+lbMt7if6XMeVS60eg6epNsMA8Jbx57dmNOzNevkKKw8mP8SUMqw=="
},
"DysonSphereProgram.Modding.CommonAPI": {
"type": "Transitive",
"resolved": "1.6.5",
"contentHash": "1VJ3hNzvmmk6aekCF0RtmOl4vbaDtQscDNNDhIvpmMQEh3j1wESezWPPVyrQB4/+0uVlDgRoqTOJo6RS74XpIQ==",
"dependencies": {
"DysonSphereProgram.Modding.DSPModSave": "1.2.0",
"DysonSphereProgram.Modding.LDBTool": "3.0.0",
"DysonSphereProgram.Modding.NebulaMultiplayerModApi": "2.0.0"
}
},
"DysonSphereProgram.Modding.DSPModSave": {
"type": "Transitive",
"resolved": "1.2.0",
"contentHash": "i70jjFTXtvE0UfD2PLqlkkLhF317KrcVl1W/PFoza9nWsAZuz12pyVaUS6h35hkqVN4k8ZODkVn2UpFiVr07aw=="
},
"DysonSphereProgram.Modding.LDBTool": {
"type": "Transitive",
"resolved": "3.0.0",
"contentHash": "RY9gnVs6X6RQ5pdOrtEIYFuKijQXYZG8kcAeUEjZz+WvkmqI23igUhHFYrmTz25WGbtGzsle06fbG0K4bA0rZQ=="
},
"DysonSphereProgram.Modding.NebulaMultiplayerModApi": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "ExoBArVwtbUpn2r1tTSE12sPQVxeBzmzC3MqDMxuhZTz8wgEl2RLT/USLy7DDaoK7XMAjXi29DBjopxSmsYPMA=="
},
"HarmonyX": {
"type": "Transitive",
"resolved": "2.7.0",
"contentHash": "lec/SkduQspMa3Pi/nM/NSvA84Za8HCCWA8ybdToKiTqnBZa+JC5g6rxoFQCg/1vNuYcvjy77edePZzIEsRmvw==",
"dependencies": {
"MonoMod.RuntimeDetour": "21.12.13.1"
}
},
"Microsoft.AspNetCore.Connections.Abstractions": {
"type": "Transitive",
"resolved": "2.3.11",
"contentHash": "lS3+85IKCaoJLqyep27kE6qd9VUB5VVGqCl4xl+gVwoidN/qH29kT7UTSncUvV2bHyc62erOHprTwVqjZb+0Aw==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.3.10",
"System.IO.Pipelines": "8.0.0"
}
},
"Microsoft.AspNetCore.Hosting": {
"type": "Transitive",
"resolved": "2.3.13",
"contentHash": "hNB7B9mtUzrJ9T8qZe8Dvm9DqSSLIASCihVqHDbq2gWGKkF6bQ3qw1Oo2PLqMCsTzf9F2sAPo9V3LO8cMP3ZNg==",
"dependencies": {
"Microsoft.AspNetCore.Hosting.Abstractions": "2.3.12",
"Microsoft.AspNetCore.Http": "2.3.12",
"Microsoft.AspNetCore.Http.Extensions": "2.3.12",
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "8.0.0",
"Microsoft.Extensions.Configuration.FileExtensions": "8.0.1",
"Microsoft.Extensions.DependencyInjection": "8.0.1",
"Microsoft.Extensions.FileProviders.Physical": "8.0.0",
"Microsoft.Extensions.Hosting.Abstractions": "8.0.1",
"Microsoft.Extensions.Logging": "8.0.1",
"Microsoft.Extensions.Logging.Debug": "8.0.1",
"Microsoft.Extensions.Options": "8.0.2",
"System.Diagnostics.DiagnosticSource": "8.0.1",
"System.Reflection.Metadata": "8.0.1"
}
},
"Microsoft.AspNetCore.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "2.3.12",
"contentHash": "jSEvM9Ot0ok4VIT8R5JNOSiLTay+sFBp1vCwiqWPqaY3HuvK0EAr8YfqOkxDnWw5nqyC5Z3asJ2NuddLNVzXGA==",
"dependencies": {
"Microsoft.AspNetCore.Hosting.Server.Abstractions": "2.3.11",
"Microsoft.AspNetCore.Http.Abstractions": "2.3.11",
"Microsoft.Extensions.Hosting.Abstractions": "8.0.1"
}
},
"Microsoft.AspNetCore.Hosting.Server.Abstractions": {
"type": "Transitive",
"resolved": "2.3.11",
"contentHash": "LMp90i+SDiogwqOybUn8T6uZ0E3wmfKxZpUUMUWo/mWkaxTFtzFPTj/VU0G5ZEgYQdz6oPSwSpkoV6pzikt9Qg==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.3.10",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0"
}
},
"Microsoft.AspNetCore.Http": {
"type": "Transitive",
"resolved": "2.3.13",
"contentHash": "6dSurGknKDspLgtKkqGw5SlDp8qpeaZ31P9RWiDsdT+CnecbNP8HgXPrAQthsIuV25FIKzfwF7VCC0JTRHtRqA==",
"dependencies": {
"Microsoft.AspNetCore.Http.Abstractions": "2.3.12",
"Microsoft.AspNetCore.WebUtilities": "2.3.12",
"Microsoft.Extensions.ObjectPool": "8.0.11",
"Microsoft.Extensions.Options": "8.0.2",
"Microsoft.Net.Http.Headers": "2.3.12"
}
},
"Microsoft.AspNetCore.Http.Abstractions": {
"type": "Transitive",
"resolved": "2.3.12",
"contentHash": "Mc1UKKSU8PmOWqpNdfpRYmqotmoQlsL1SAYwLHIIlTDayjyKng3UVn5+b+mPAEp31vU4ozy0CYeRYvCPqzdxZw==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.3.11",
"System.Text.Encodings.Web": "8.0.0"
}
},
"Microsoft.AspNetCore.Http.Extensions": {
"type": "Transitive",
"resolved": "2.3.12",
"contentHash": "qMK/Q25fj2R97RNNnbK2WmQTBN6wAa1t0sWSyOb3XA8JYkZTGxWjoVJ3P7ntdmEdV8EVfTrV1DCQl390GAOeXg==",
"dependencies": {
"Microsoft.AspNetCore.Http.Abstractions": "2.3.11",
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"Microsoft.Net.Http.Headers": "2.3.11",
"System.Buffers": "4.6.0"
}
},
"Microsoft.AspNetCore.Http.Features": {
"type": "Transitive",
"resolved": "2.3.11",
"contentHash": "TRQWR0vHBUUAEynbgCI3/MRf4+xRj8TsljoUPYxqiombhYhoEYHnr1sowozU1L/OyJHkPdm2IscJ9JBa0kcgbw==",
"dependencies": {
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.AspNetCore.Server.Kestrel": {
"type": "Transitive",
"resolved": "2.3.13",
"contentHash": "E39NfUxxS6EGfKdUmRUU8789BDxX3Au675HaKLs3Z+EP0R6cn3iUEqYt9msHQJ0JFTJwmqt8i25GeYc8/m7w9Q==",
"dependencies": {
"Microsoft.AspNetCore.Hosting": "2.3.12",
"Microsoft.AspNetCore.Server.Kestrel.Core": "2.3.12",
"Microsoft.AspNetCore.Server.Kestrel.Https": "2.3.12",
"Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets": "2.3.13",
"System.IO.Pipelines": "8.0.0"
}
},
"Microsoft.AspNetCore.Server.Kestrel.Core": {
"type": "Transitive",
"resolved": "2.3.13",
"contentHash": "mSxCuFfUJfDT+dGiXaLPT+fRsfxwIrlS1HlAIVjGEDBbxqLk/QQbI9r29xv32Yyw6tUejNAFBh/bGcEkw2Y0UA==",
"dependencies": {
"Microsoft.AspNetCore.Hosting.Abstractions": "2.3.12",
"Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "2.3.12",
"Microsoft.AspNetCore.WebUtilities": "2.3.12",
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.Binder": "8.0.2",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2",
"Microsoft.Extensions.Options": "8.0.2",
"Microsoft.Net.Http.Headers": "2.3.12",
"System.Memory": "4.6.0",
"System.Numerics.Vectors": "4.6.0",
"System.Runtime.CompilerServices.Unsafe": "6.1.0",
"System.Security.Cryptography.Cng": "5.0.0",
"System.Threading.Tasks.Extensions": "4.6.0"
}
},
"Microsoft.AspNetCore.Server.Kestrel.Https": {
"type": "Transitive",
"resolved": "2.3.12",
"contentHash": "WYgEPYGQStLbv8mDjM5vZ4G42inArjFQlfqZfHXLWTDabn7dFoCJMtArFITQO0ufXBnhLxT/mzpLTaBD63jI1Q==",
"dependencies": {
"Microsoft.AspNetCore.Http.Abstractions": "2.3.11",
"Microsoft.AspNetCore.Server.Kestrel.Core": "2.3.11"
}
},
"Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": {
"type": "Transitive",
"resolved": "2.3.12",
"contentHash": "JMmL1DrpgaeEHE3jCavNFShBS1q9zt3u0PzdUSSqWHBep5MXnidbPyuHW+fIOeWVwEnN5GwXj8VINx+qyjFSAg==",
"dependencies": {
"Microsoft.AspNetCore.Connections.Abstractions": "2.3.11",
"System.IO.Pipelines": "8.0.0"
}
},
"Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets": {
"type": "Transitive",
"resolved": "2.3.13",
"contentHash": "l3URJm6IoIczXezQ1UgzCeFgak3fK781uovNKkS3Qrh9hQbsHDx0wMt3Qf9NuKyOVwkEreIB5oF/NLIb/k0N9A==",
"dependencies": {
"Microsoft.AspNetCore.Hosting.Abstractions": "2.3.12",
"Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "2.3.12",
"Microsoft.Extensions.Options": "8.0.2"
}
},
"Microsoft.AspNetCore.WebSockets": {
"type": "Transitive",
"resolved": "2.3.13",
"contentHash": "9NRfb/pnNMffdqQC+AJiseOmum+Y7guPekFGJjO921EMsr/S9e0ZZ3ouoO10tlZPiJBhMHrHe6pqcUcZddFKww==",
"dependencies": {
"Microsoft.AspNetCore.Http.Extensions": "2.3.12",
"Microsoft.Extensions.Options": "8.0.2",
"System.Net.WebSockets.WebSocketProtocol": "5.1.0"
}
},
"Microsoft.AspNetCore.WebUtilities": {
"type": "Transitive",
"resolved": "2.3.12",
"contentHash": "wzbAsF9N+9Eftg7+daZwPbfuT8wFQlD1duV/OPHNw5twVVgWkSjjens9QQ4ZrXSY6sd1nRYE6RZGUtZt5NaENA==",
"dependencies": {
"Microsoft.Net.Http.Headers": "2.3.11",
"System.Text.Encodings.Web": "8.0.0"
}
},
"Microsoft.Bcl.AsyncInterfaces": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==",
"dependencies": {
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"Microsoft.Extensions.Configuration": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "0J/9YNXTMWSZP2p2+nvl8p71zpSwokZXZuJW+VjdErkegAnFdO1XlqtA62SJtgVYHdKu3uPxJHcMR/r35HwFBA==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.Configuration.Abstractions": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==",
"dependencies": {
"Microsoft.Extensions.Primitives": "8.0.0",
"System.ValueTuple": "4.5.0"
}
},
"Microsoft.Extensions.Configuration.Binder": {
"type": "Transitive",
"resolved": "8.0.2",
"contentHash": "7IQhGK+wjyGrNsPBjJcZwWAr+Wf6D4+TwOptUt77bWtgNkiV8tDEbhFS+dDamtQFZ2X7kWG9m71iZQRj2x3zgQ==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0"
}
},
"Microsoft.Extensions.Configuration.EnvironmentVariables": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "plvZ0ZIpq+97gdPNNvhwvrEZ92kNml9hd1pe3idMA7svR0PztdzVLkoWLcRFgySYXUJc3kSM3Xw3mNFMo/bxRA==",
"dependencies": {
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0"
}
},
"Microsoft.Extensions.Configuration.FileExtensions": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "EJzSNO9oaAXnTdtdNO6npPRsIIeZCBSNmdQ091VDO7fBiOtJAAeEq6dtrVXIi3ZyjC5XRSAtVvF8SzcneRHqKQ==",
"dependencies": {
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"Microsoft.Extensions.FileProviders.Physical": "8.0.0",
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.DependencyInjection": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "BmANAnR5Xd4Oqw7yQ75xOAYODybZQRzdeNucg7kS5wWKd2PNnMdYtJ2Vciy0QLylRmv42DGl5+AFL9izA6F1Rw==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "8.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "8.0.2",
"contentHash": "3iE7UF7MQkCv1cxzCahz+Y/guQbTqieyxyaWKhrRO91itI9cOKO76OHeQDahqG4MmW5umr3CcCvGmK92lWNlbg==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "8.0.0",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"Microsoft.Extensions.Diagnostics.Abstractions": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "elH2vmwNmsXuKmUeMQ4YW9ldXiF+gSGDgg1vORksob5POnpaI6caj1Hu8zaYbEuibhqCoWg0YRWDazBY3zjBfg==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Options": "8.0.2",
"System.Buffers": "4.5.1",
"System.Diagnostics.DiagnosticSource": "8.0.1",
"System.Memory": "4.5.5"
}
},
"Microsoft.Extensions.FileProviders.Abstractions": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==",
"dependencies": {
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.FileProviders.Physical": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "UboiXxpPUpwulHvIAVE36Knq0VSHaAmfrFkegLyBZeaADuKezJ/AIXYAW8F5GBlGk/VaibN2k/Zn1ca8YAfVdA==",
"dependencies": {
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"Microsoft.Extensions.FileSystemGlobbing": "8.0.0",
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.FileSystemGlobbing": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "OK+670i7esqlQrPjdIKRbsyMCe9g5kSLpRRQGSr4Q58AOYEe/hCnfLZprh7viNisSUUQZmMrbbuDaIrP+V1ebQ=="
},
"Microsoft.Extensions.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "nHwq9aPBdBPYXPti6wYEEfgXddfBrYC+CQLn+qISiwQq5tpfaqDZSKOJNxoe9rfQxGf1c+2wC/qWFe1QYJPYqw==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "8.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Diagnostics.Abstractions": "8.0.1",
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"Microsoft.Extensions.Logging": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "4x+pzsQEbqxhNf1QYRr5TDkLP9UsLT3A6MdRKDDEgrW7h1ljiEPgTNhKYUhNCCAaVpQECVQ+onA91PTPnIp6Lw==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "8.0.0",
"Microsoft.Extensions.DependencyInjection": "8.0.1",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2",
"Microsoft.Extensions.Options": "8.0.2",
"System.Diagnostics.DiagnosticSource": "8.0.1",
"System.ValueTuple": "4.5.0"
}
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "Transitive",
"resolved": "8.0.2",
"contentHash": "nroMDjS7hNBPtkZqVBbSiQaQjWRDxITI8Y7XnDs97rqG3EbzVTNLZQf7bIeUJcaHOV8bca47s1Uxq94+2oGdxA==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"System.Buffers": "4.5.1",
"System.Diagnostics.DiagnosticSource": "8.0.1",
"System.Memory": "4.5.5"
}
},
"Microsoft.Extensions.Logging.Debug": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "B8hqNuYudC2RB+L/DI33uO4rf5by41fZVdcVL2oZj0UyoAZqnwTwYHp1KafoH4nkl1/23piNeybFFASaV2HkFg==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging": "8.0.1",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2"
}
},
"Microsoft.Extensions.ObjectPool": {
"type": "Transitive",
"resolved": "8.0.11",
"contentHash": "6ApKcHNJigXBfZa6XlDQ8feJpq7SG1ogZXg6M4FiNzgd6irs3LUAzo0Pfn4F2ZI9liGnH1XIBR/OtSbZmJAV5w=="
},
"Microsoft.Extensions.Options": {
"type": "Transitive",
"resolved": "8.0.2",
"contentHash": "dWGKvhFybsaZpGmzkGCbNNwBD1rVlWzrZKANLW/CcbFJpCEceMCGzT7zZwHOGBCbwM0SzBuceMj5HN1LKV1QqA==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0",
"Microsoft.Extensions.Primitives": "8.0.0",
"System.ValueTuple": "4.5.0"
}
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==",
"dependencies": {
"System.Memory": "4.5.5",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"Microsoft.Net.Http.Headers": {
"type": "Transitive",
"resolved": "2.3.12",
"contentHash": "lh9agX9zEuQy69kxwPTT2+OmK2Y49OA8r7qdwZNWNKGug45V050HLH3xhPF23y4sr5Nl6JKXo0AofCwxkNd6zw==",
"dependencies": {
"Microsoft.Extensions.Primitives": "8.0.0",
"System.Buffers": "4.6.0"
}
},
"Microsoft.NETFramework.ReferenceAssemblies.net472": {
"type": "Transitive",
"resolved": "1.0.3",
"contentHash": "0E7evZXHXaDYYiLRfpyXvCh+yzM2rNTyuZDI+ZO7UUqSc6GfjePiXTdqJGtgIKUwdI81tzQKmaWprnUiPj9hAw=="
},
"Mono.Cecil": {
"type": "Transitive",
"resolved": "0.11.4",
"contentHash": "IC1h5g0NeJGHIUgzM1P82ld57knhP0IcQfrYITDPXlNpMYGUrsG5TxuaWTjaeqDNQMBDNZkB8L0rBnwsY6JHuQ=="
},
"MonoMod.RuntimeDetour": {
"type": "Transitive",
"resolved": "21.12.13.1",
"contentHash": "65mB+bHjT6UCGCgO+/pYhpuGPf96rQ1Whwkut/x7cqVIW0DTndDFyWc/3bngzhnY/Y6IYtBMlXsU2ATq+CxpHg==",
"dependencies": {
"Mono.Cecil": "0.11.4",
"MonoMod.Utils": "21.12.13.1"
}
},
"MonoMod.Utils": {
"type": "Transitive",
"resolved": "21.12.13.1",
"contentHash": "/H+0RMWqx/D1/fSuY5jhY6GFvqhdYdlnI7J3IfL8P6y4nJkoZDxqts6+RxWWOz4pbnJdWnxSjS8XG+Lq6rUi7w==",
"dependencies": {
"Mono.Cecil": "0.11.4"
}
},
"Newtonsoft.Json": {
"type": "Transitive",
"resolved": "13.0.3",
"contentHash": "HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ=="
},
"System.Buffers": {
"type": "Transitive",
"resolved": "4.6.1",
"contentHash": "N8GXpmiLMtljq7gwvyS+1QvKT/W2J8sNAvx+HVg4NGmsG/H+2k/y9QI23auLJRterrzCiDH+IWAw4V/GPwsMlw=="
},
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "AurL6Y5BA1WotzlEvVaIDpqzpIPvYnnldxru8oXJU2yFxFUy3+pNXjXd1ymO+RA0rq0+590Q8gaz2l3Sr7fmqg==",
"dependencies": {
"System.Memory": "4.5.5",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"System.Diagnostics.DiagnosticSource": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "vaoWjvkG1aenR2XdjaVivlCV9fADfgyhW5bZtXT23qaEea0lWiUljdQuze4E31vKM7ZWJaSUsbYIKE3rnzfZUg==",
"dependencies": {
"System.Memory": "4.5.5",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"System.IO": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg=="
},
"System.IO.Pipelines": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==",
"dependencies": {
"System.Buffers": "4.5.1",
"System.Memory": "4.5.5",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.6.3",
"contentHash": "qdcDOgnFZY40+Q9876JUHnlHu7bosOHX8XISRoH94fwk6hgaeQGSgfZd8srWRZNt5bV9ZW2TljcegDNxsf+96A==",
"dependencies": {
"System.Buffers": "4.6.1",
"System.Numerics.Vectors": "4.6.1",
"System.Runtime.CompilerServices.Unsafe": "6.1.2"
}
},
"System.Net.WebSockets.WebSocketProtocol": {
"type": "Transitive",
"resolved": "5.1.3",
"contentHash": "n236SAZz8HzZe1BEessCoAFh+QhAXq6jgc7qkQ5hi0iEcTra21Q5o4Utm5Ln92SOWcn/Sz+YdMGJQteb/7SISg==",
"dependencies": {
"System.Buffers": "4.6.1",
"System.Memory": "4.6.3",
"System.Numerics.Vectors": "4.6.1",
"System.Runtime.CompilerServices.Unsafe": "6.1.2",
"System.Threading.Tasks.Extensions": "4.6.3"
}
},
"System.Numerics.Vectors": {
"type": "Transitive",
"resolved": "4.6.1",
"contentHash": "sQxefTnhagrhoq2ReR0D/6K0zJcr9Hrd6kikeXsA1I8kOCboTavcUC4r7TSfpKFeE163uMuxZcyfO1mGO3EN8Q=="
},
"System.Reflection.Metadata": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "+4sz5vGHPlo+5NpAxf2IlABnqVvOHOxv17b4dONv4hVwyNeFAeBevT14DIn7X3YWQ+eQFYO3YeTBNCleAblOKA==",
"dependencies": {
"System.Collections.Immutable": "8.0.0",
"System.Memory": "4.5.5"
}
},
"System.Runtime": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw=="
},
"System.Runtime.CompilerServices.Unsafe": {
"type": "Transitive",
"resolved": "6.1.2",
"contentHash": "2hBr6zdbIBTDE3EhK7NSVNdX58uTK6iHW/P/Axmm9sl1xoGSLqDvMtpecn226TNwHByFokYwJmt/aQQNlO5CRw=="
},
"System.Security.Cryptography.Algorithms": {
"type": "Transitive",
"resolved": "4.3.1",
"contentHash": "DVUblnRfnarrI5olEC2B/OCsJQd0anjVaObQMndHSc43efbc88/RMOlDyg/EyY0ix5ecyZMXS8zMksb5ukebZA==",
"dependencies": {
"System.IO": "4.3.0",
"System.Runtime": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0"
}
},
"System.Security.Cryptography.Cng": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "jIMXsKn94T9JY7PvPq/tMfqa6GAaHpElRDpmG+SuL+D3+sTw2M8VhnibKnN8Tq+4JqbPJ/f+BwtLeDMEnzAvRg==",
"dependencies": {
"System.Security.Cryptography.Algorithms": "4.3.1"
}
},
"System.Security.Cryptography.Encoding": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw=="
},
"System.Security.Cryptography.Primitives": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg=="
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==",
"dependencies": {
"System.Buffers": "4.5.1",
"System.Memory": "4.5.5",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"System.Threading.Tasks.Extensions": {
"type": "Transitive",
"resolved": "4.6.3",
"contentHash": "7sCiwilJLYbTZELaKnc7RecBBXWXA+xMLQWZKWawBxYjp6DBlSE3v9/UcvKBvr1vv2tTOhipiogM8rRmxlhrVA==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.1.2"
}
},
"System.ValueTuple": {
"type": "Transitive",
"resolved": "4.5.0",
"contentHash": "okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ=="
},
"livestreamassist": {
"type": "Project",
"dependencies": {
"BepInEx.Core": "[5.*, )",
"BepInEx.PluginInfoProps": "[1.*, )",
"Microsoft.AspNetCore.Hosting": "[2.3.13, )",
"Microsoft.AspNetCore.Http": "[2.3.13, )",
"Microsoft.AspNetCore.Server.Kestrel": "[2.3.13, )",
"Microsoft.AspNetCore.Server.Kestrel.Core": "[2.3.13, )",
"Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets": "[2.3.13, )",
"Microsoft.AspNetCore.WebSockets": "[2.3.13, )",
"Newtonsoft.Json": "[13.0.3, )",
"System.Net.WebSockets.WebSocketProtocol": "[5.1.3, )",
"UXAssist": "[1.5.9, )",
"UnityEngine.Modules": "[2022.3.62, )"
}
},
"uxassist": {
"type": "Project",
"dependencies": {
"BepInEx.Core": "[5.*, )",
"BepInEx.PluginInfoProps": "[1.*, )",
"DysonSphereProgram.Modding.CommonAPI": "[1.*, )",
"DysonSphereProgram.Modding.DSPModSave": "[1.*, )",
"UnityEngine.Modules": "[2022.3.62, )"
}
}
},
".NETFramework,Version=v4.7.2/win-x86": {
"System.Security.Cryptography.Algorithms": {
"type": "Transitive",
"resolved": "4.3.1",
"contentHash": "DVUblnRfnarrI5olEC2B/OCsJQd0anjVaObQMndHSc43efbc88/RMOlDyg/EyY0ix5ecyZMXS8zMksb5ukebZA==",
"dependencies": {
"System.IO": "4.3.0",
"System.Runtime": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0"
}
},
"System.Security.Cryptography.Cng": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "jIMXsKn94T9JY7PvPq/tMfqa6GAaHpElRDpmG+SuL+D3+sTw2M8VhnibKnN8Tq+4JqbPJ/f+BwtLeDMEnzAvRg==",
"dependencies": {
"System.Security.Cryptography.Algorithms": "4.3.1"
}
},
"System.Security.Cryptography.Encoding": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw=="
}
}
}
}