Files
nucleic-windows/NucleicApp/Services/RendezvousFile.cs
T

14 lines
392 B
C#
Raw Normal View History

2026-08-04 02:46:53 -07:00
using NucleicProtocol.Interop;
namespace NucleicApp.Services;
public static class RendezvousFile
{
public static async Task<HostdRendezvous> ReadAsync(
string path, CancellationToken cancellationToken = default)
{
var json = await File.ReadAllTextAsync(path, cancellationToken).ConfigureAwait(false);
return ProtocolJson.DeserializeRendezvous(json);
}
}