25 lines
728 B
C#
Raw Normal View History

2019-06-12 21:56:55 +02:00
using System.Threading;
using System.Threading.Tasks;
using Capnp.Rpc;
namespace Capnp.Net.Runtime.Tests
{
2019-11-06 14:16:20 +01:00
class TestCallContext
2019-06-12 21:56:55 +02:00
{
2019-11-06 14:16:20 +01:00
public TestCallContext(ulong interfaceId, ushort methodId, DeserializerState args, CancellationToken ct)
2019-06-12 21:56:55 +02:00
{
InterfaceId = interfaceId;
MethodId = methodId;
Args = args;
Ct = ct;
Result = new TaskCompletionSource<AnswerOrCounterquestion>();
}
public ulong InterfaceId { get; }
public ushort MethodId { get; }
public DeserializerState Args { get; }
public CancellationToken Ct { get; }
public TaskCompletionSource<AnswerOrCounterquestion> Result { get; }
}
}