Files

14 lines
392 B
C#

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);
}
}