mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 14:51:41 +01:00
25 lines
728 B
C#
25 lines
728 B
C#
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<AnswerOrCounterquestion>();
|
|
}
|
|
|
|
public ulong InterfaceId { get; }
|
|
public ushort MethodId { get; }
|
|
public DeserializerState Args { get; }
|
|
public CancellationToken Ct { get; }
|
|
public TaskCompletionSource<AnswerOrCounterquestion> Result { get; }
|
|
}
|
|
}
|