interoptopus_csharp 0.16.0-alpha.12

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 TestPatternServicesAsyncCtor
{
    [Fact]
    public async void NewAsyncAndGetValue()
    {
        var basic = ServiceAsyncBasic.Create();
        var ctor = await ServiceAsyncCtor.NewAsync(basic.Context, 42);
        Assert.Equal(42u, ctor.GetValue());
        ctor.Dispose();
        basic.Dispose();
    }
}