using System.Threading; using System.Threading.Tasks; using Capnp.Rpc; namespace Capnp.Net.Runtime.Tests { class TestCallContext { public TestCallContext(ulong interfaceId, ushort methodId, DeserializerState args, CancellationToken ct) { InterfaceId = interfaceId; MethodId = methodId; Args = args; Ct = ct; Result = new TaskCompletionSource(); } public ulong InterfaceId { get; } public ushort MethodId { get; } public DeserializerState Args { get; } public CancellationToken Ct { get; } public TaskCompletionSource Result { get; } } }