2019-06-12 21:56:55 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Capnp.Rpc
|
|
|
|
|
{
|
|
|
|
|
internal interface IRpcEndpoint
|
|
|
|
|
{
|
|
|
|
|
PendingQuestion BeginQuestion(ConsumedCapability target, SerializerState inParams);
|
|
|
|
|
void SendQuestion(SerializerState inParams, Payload.WRITER payload);
|
|
|
|
|
uint AllocateExport(Skeleton providedCapability, out bool first);
|
|
|
|
|
void Finish(uint questionId);
|
|
|
|
|
void ReleaseImport(uint importId);
|
|
|
|
|
void Resolve(uint preliminaryId, Skeleton preliminaryCap, Func<ConsumedCapability> resolvedCapGetter);
|
|
|
|
|
|
|
|
|
|
Task RequestSenderLoopback(Action<MessageTarget.WRITER> writer);
|
|
|
|
|
void DeleteQuestion(PendingQuestion question);
|
|
|
|
|
}
|
2020-01-11 17:56:12 +01:00
|
|
|
|
}
|