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
using System.Threading.Tasks;
using My.Company;
using Xunit;

public class TestPatternServicesAsyncCtor
{
    [Fact]
    public async Task NewAsync()
    {
        using var asyncBasic = ServiceAsyncBasic.Simple();
        using var asyncCtor = await ServiceAsyncCtor.NewAsync(asyncBasic, 42, TestContext.Current.CancellationToken);
        Assert.Equal(42u, asyncCtor.GetValue());
    }
}