interoptopus_csharp 0.16.4

The C# backend for Interoptopus.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System.Threading.Tasks;
using My.Company;
using Xunit;

public class TestPatternServicesAsyncRval
{
    [Fact]
    public async Task Create()
    {
        using var s = ServiceAsyncRval.Simple();
        Assert.Equal(123u, await s.Number(TestContext.Current.CancellationToken));
        Assert.Equal(new Vec3f32 { x = 0, y = 0, z = 0 }, await s.Vecf32(TestContext.Current.CancellationToken));
        Assert.Equal("hello", (await s.Wire(TestContext.Current.CancellationToken)).Unwire());
    }

}