interoptopus_csharp 0.16.0-alpha.15

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

public class TestPatternServicesAsyncCtor
{
    [Fact]
    public async void NewAsyncAndGetValue()
    {
        using var asyncBasic = ServiceAsyncBasic.Create();
        using var asyncCtor = await ServiceAsyncCtor.NewAsync(asyncBasic, 42);
        Assert.Equal(42u, asyncCtor.GetValue());
    }
}