mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-13 15:21:47 +01:00
21 lines
465 B
C#
21 lines
465 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace EchoServiceCapnp.Services
|
|||
|
{
|
|||
|
public class CapnpEchoService : CapnpGen.IEchoer
|
|||
|
{
|
|||
|
public void Dispose()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public Task<IReadOnlyList<byte>> Echo(IReadOnlyList<byte> input, CancellationToken cancellationToken_ = default)
|
|||
|
{
|
|||
|
return Task.FromResult(input);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|