mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 23:01:44 +01:00
test & fix
This commit is contained in:
parent
aac32335b6
commit
75823c43b9
@ -169,7 +169,7 @@ namespace Capnp.Net.Runtime.Tests
|
|||||||
var rx = policy.Returns.ReceiveAsync();
|
var rx = policy.Returns.ReceiveAsync();
|
||||||
|
|
||||||
// Racing against Bob's answer
|
// Racing against Bob's answer
|
||||||
Assert.IsTrue(cc.State == InterceptionState.ForwardedToBob || rx.IsCompleted);
|
Assert.IsTrue(cc.State == InterceptionState.ForwardedToBob || cc.State == InterceptionState.ReturnedFromBob);
|
||||||
|
|
||||||
Assert.IsTrue(rx.Wait(MediumNonDbgTimeout));
|
Assert.IsTrue(rx.Wait(MediumNonDbgTimeout));
|
||||||
var rr = new Capnproto_test.Capnp.Test.TestInterface.Result_Foo.READER(cc.OutArgs);
|
var rr = new Capnproto_test.Capnp.Test.TestInterface.Result_Foo.READER(cc.OutArgs);
|
||||||
|
@ -8609,6 +8609,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task Call(CancellationToken cancellationToken_ = default);
|
Task Call(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8839ed86c9794287UL)]
|
||||||
public class DeepNestInterface_Proxy<TQuux> : Proxy, IDeepNestInterface<TQuux> where TQuux : class
|
public class DeepNestInterface_Proxy<TQuux> : Proxy, IDeepNestInterface<TQuux> where TQuux : class
|
||||||
{
|
{
|
||||||
public async Task Call(CancellationToken cancellationToken_ = default)
|
public async Task Call(CancellationToken cancellationToken_ = default)
|
||||||
@ -8625,6 +8626,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8839ed86c9794287UL)]
|
||||||
public class DeepNestInterface_Skeleton<TQuux> : Skeleton<IDeepNestInterface<TQuux>> where TQuux : class
|
public class DeepNestInterface_Skeleton<TQuux> : Skeleton<IDeepNestInterface<TQuux>> where TQuux : class
|
||||||
{
|
{
|
||||||
public DeepNestInterface_Skeleton()
|
public DeepNestInterface_Skeleton()
|
||||||
@ -8746,6 +8748,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task<(TQux, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>)> Call(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string> arg_, CancellationToken cancellationToken_ = default);
|
Task<(TQux, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>)> Call(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string> arg_, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc9e749e8dd54da5cUL)]
|
||||||
public class Interface_Proxy<TQux> : Proxy, IInterface<TQux> where TQux : class
|
public class Interface_Proxy<TQux> : Proxy, IInterface<TQux> where TQux : class
|
||||||
{
|
{
|
||||||
public Task<(TQux, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>)> Call(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string> arg_, CancellationToken cancellationToken_ = default)
|
public Task<(TQux, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>)> Call(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string> arg_, CancellationToken cancellationToken_ = default)
|
||||||
@ -8765,6 +8768,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc9e749e8dd54da5cUL)]
|
||||||
public class Interface_Skeleton<TQux> : Skeleton<IInterface<TQux>> where TQux : class
|
public class Interface_Skeleton<TQux> : Skeleton<IInterface<TQux>> where TQux : class
|
||||||
{
|
{
|
||||||
public Interface_Skeleton()
|
public Interface_Skeleton()
|
||||||
@ -9128,18 +9132,19 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8b9717a3f8d85a9aUL), Proxy(typeof(TestImplicitMethodParams_Proxy)), Skeleton(typeof(TestImplicitMethodParams_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8b9717a3f8d85a9aUL), Proxy(typeof(TestImplicitMethodParams_Proxy)), Skeleton(typeof(TestImplicitMethodParams_Skeleton))]
|
||||||
public interface ITestImplicitMethodParams : IDisposable
|
public interface ITestImplicitMethodParams : IDisposable
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT Foo, TU Bar, CancellationToken cancellationToken_ = default)
|
Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT foo, TU bar, CancellationToken cancellationToken_ = default)
|
||||||
where TT : class where TU : class;
|
where TT : class where TU : class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8b9717a3f8d85a9aUL)]
|
||||||
public class TestImplicitMethodParams_Proxy : Proxy, ITestImplicitMethodParams
|
public class TestImplicitMethodParams_Proxy : Proxy, ITestImplicitMethodParams
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT Foo, TU Bar, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT foo, TU bar, CancellationToken cancellationToken_ = default)
|
||||||
where TT : class where TU : class
|
where TT : class where TU : class
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestImplicitMethodParams.Params_Call<TT, TU>.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestImplicitMethodParams.Params_Call<TT, TU>.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestImplicitMethodParams.Params_Call<TT, TU>()
|
var arg_ = new Capnproto_test.Capnp.Test.TestImplicitMethodParams.Params_Call<TT, TU>()
|
||||||
{ Foo = Foo, Bar = Bar };
|
{ Foo = foo, Bar = bar };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(10058534285777328794UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(10058534285777328794UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -9154,6 +9159,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8b9717a3f8d85a9aUL)]
|
||||||
public class TestImplicitMethodParams_Skeleton : Skeleton<ITestImplicitMethodParams>
|
public class TestImplicitMethodParams_Skeleton : Skeleton<ITestImplicitMethodParams>
|
||||||
{
|
{
|
||||||
public TestImplicitMethodParams_Skeleton()
|
public TestImplicitMethodParams_Skeleton()
|
||||||
@ -9261,18 +9267,19 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdf9ccdeb81a704c9UL), Proxy(typeof(TestImplicitMethodParamsInGeneric_Proxy<>)), Skeleton(typeof(TestImplicitMethodParamsInGeneric_Skeleton<>))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdf9ccdeb81a704c9UL), Proxy(typeof(TestImplicitMethodParamsInGeneric_Proxy<>)), Skeleton(typeof(TestImplicitMethodParamsInGeneric_Skeleton<>))]
|
||||||
public interface ITestImplicitMethodParamsInGeneric<TV> : IDisposable where TV : class
|
public interface ITestImplicitMethodParamsInGeneric<TV> : IDisposable where TV : class
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT Foo, TU Bar, CancellationToken cancellationToken_ = default)
|
Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT foo, TU bar, CancellationToken cancellationToken_ = default)
|
||||||
where TT : class where TU : class;
|
where TT : class where TU : class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdf9ccdeb81a704c9UL)]
|
||||||
public class TestImplicitMethodParamsInGeneric_Proxy<TV> : Proxy, ITestImplicitMethodParamsInGeneric<TV> where TV : class
|
public class TestImplicitMethodParamsInGeneric_Proxy<TV> : Proxy, ITestImplicitMethodParamsInGeneric<TV> where TV : class
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT Foo, TU Bar, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT foo, TU bar, CancellationToken cancellationToken_ = default)
|
||||||
where TT : class where TU : class
|
where TT : class where TU : class
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestImplicitMethodParamsInGeneric<TV>.Params_Call<TT, TU>.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestImplicitMethodParamsInGeneric<TV>.Params_Call<TT, TU>.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestImplicitMethodParamsInGeneric<TV>.Params_Call<TT, TU>()
|
var arg_ = new Capnproto_test.Capnp.Test.TestImplicitMethodParamsInGeneric<TV>.Params_Call<TT, TU>()
|
||||||
{ Foo = Foo, Bar = Bar };
|
{ Foo = foo, Bar = bar };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(16112979978201007305UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(16112979978201007305UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -9287,6 +9294,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdf9ccdeb81a704c9UL)]
|
||||||
public class TestImplicitMethodParamsInGeneric_Skeleton<TV> : Skeleton<ITestImplicitMethodParamsInGeneric<TV>> where TV : class
|
public class TestImplicitMethodParamsInGeneric_Skeleton<TV> : Skeleton<ITestImplicitMethodParamsInGeneric<TV>> where TV : class
|
||||||
{
|
{
|
||||||
public TestImplicitMethodParamsInGeneric_Skeleton()
|
public TestImplicitMethodParamsInGeneric_Skeleton()
|
||||||
@ -10824,18 +10832,19 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x88eb12a0e0af92b2UL), Proxy(typeof(TestInterface_Proxy)), Skeleton(typeof(TestInterface_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x88eb12a0e0af92b2UL), Proxy(typeof(TestInterface_Proxy)), Skeleton(typeof(TestInterface_Skeleton))]
|
||||||
public interface ITestInterface : IDisposable
|
public interface ITestInterface : IDisposable
|
||||||
{
|
{
|
||||||
Task<string> Foo(uint I, bool J, CancellationToken cancellationToken_ = default);
|
Task<string> Foo(uint i, bool j, CancellationToken cancellationToken_ = default);
|
||||||
Task Bar(CancellationToken cancellationToken_ = default);
|
Task Bar(CancellationToken cancellationToken_ = default);
|
||||||
Task Baz(Capnproto_test.Capnp.Test.TestAllTypes S, CancellationToken cancellationToken_ = default);
|
Task Baz(Capnproto_test.Capnp.Test.TestAllTypes s, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x88eb12a0e0af92b2UL)]
|
||||||
public class TestInterface_Proxy : Proxy, ITestInterface
|
public class TestInterface_Proxy : Proxy, ITestInterface
|
||||||
{
|
{
|
||||||
public async Task<string> Foo(uint I, bool J, CancellationToken cancellationToken_ = default)
|
public async Task<string> Foo(uint i, bool j, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
||||||
{ I = I, J = J };
|
{ I = i, J = j };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -10857,11 +10866,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes S, CancellationToken cancellationToken_ = default)
|
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes s, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
||||||
{ S = S };
|
{ S = s };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -10871,6 +10880,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x88eb12a0e0af92b2UL)]
|
||||||
public class TestInterface_Skeleton : Skeleton<ITestInterface>
|
public class TestInterface_Skeleton : Skeleton<ITestInterface>
|
||||||
{
|
{
|
||||||
public TestInterface_Skeleton()
|
public TestInterface_Skeleton()
|
||||||
@ -11259,6 +11269,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task<Capnproto_test.Capnp.Test.TestAllTypes> Grault(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestAllTypes> Grault(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe4e9bac98670b748UL)]
|
||||||
public class TestExtends_Proxy : Proxy, ITestExtends
|
public class TestExtends_Proxy : Proxy, ITestExtends
|
||||||
{
|
{
|
||||||
public async Task Qux(CancellationToken cancellationToken_ = default)
|
public async Task Qux(CancellationToken cancellationToken_ = default)
|
||||||
@ -11298,11 +11309,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<string> Foo(uint I, bool J, CancellationToken cancellationToken_ = default)
|
public async Task<string> Foo(uint i, bool j, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
||||||
{ I = I, J = J };
|
{ I = i, J = j };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -11324,11 +11335,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes S, CancellationToken cancellationToken_ = default)
|
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes s, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
||||||
{ S = S };
|
{ S = s };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -11338,6 +11349,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe4e9bac98670b748UL)]
|
||||||
public class TestExtends_Skeleton : Skeleton<ITestExtends>
|
public class TestExtends_Skeleton : Skeleton<ITestExtends>
|
||||||
{
|
{
|
||||||
public TestExtends_Skeleton()
|
public TestExtends_Skeleton()
|
||||||
@ -11570,6 +11582,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x98d7e0ef61488783UL)]
|
||||||
public class TestExtends2_Proxy : Proxy, ITestExtends2
|
public class TestExtends2_Proxy : Proxy, ITestExtends2
|
||||||
{
|
{
|
||||||
public async Task Qux(CancellationToken cancellationToken_ = default)
|
public async Task Qux(CancellationToken cancellationToken_ = default)
|
||||||
@ -11609,11 +11622,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<string> Foo(uint I, bool J, CancellationToken cancellationToken_ = default)
|
public async Task<string> Foo(uint i, bool j, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
||||||
{ I = I, J = J };
|
{ I = i, J = j };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -11635,11 +11648,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes S, CancellationToken cancellationToken_ = default)
|
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes s, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
||||||
{ S = S };
|
{ S = s };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -11649,6 +11662,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x98d7e0ef61488783UL)]
|
||||||
public class TestExtends2_Skeleton : Skeleton<ITestExtends2>
|
public class TestExtends2_Skeleton : Skeleton<ITestExtends2>
|
||||||
{
|
{
|
||||||
public TestExtends2_Skeleton()
|
public TestExtends2_Skeleton()
|
||||||
@ -11662,18 +11676,19 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5a404caa61d4cd0UL), Proxy(typeof(TestPipeline_Proxy)), Skeleton(typeof(TestPipeline_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5a404caa61d4cd0UL), Proxy(typeof(TestPipeline_Proxy)), Skeleton(typeof(TestPipeline_Skeleton))]
|
||||||
public interface ITestPipeline : IDisposable
|
public interface ITestPipeline : IDisposable
|
||||||
{
|
{
|
||||||
Task<(string, Capnproto_test.Capnp.Test.TestPipeline.Box)> GetCap(uint N, Capnproto_test.Capnp.Test.ITestInterface InCap, CancellationToken cancellationToken_ = default);
|
Task<(string, Capnproto_test.Capnp.Test.TestPipeline.Box)> GetCap(uint n, Capnproto_test.Capnp.Test.ITestInterface inCap, CancellationToken cancellationToken_ = default);
|
||||||
Task TestPointers(Capnproto_test.Capnp.Test.ITestInterface Cap, object Obj, IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> List, CancellationToken cancellationToken_ = default);
|
Task TestPointers(Capnproto_test.Capnp.Test.ITestInterface cap, object obj, IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> list, CancellationToken cancellationToken_ = default);
|
||||||
Task<(string, Capnproto_test.Capnp.Test.TestPipeline.AnyBox)> GetAnyCap(uint N, BareProxy InCap, CancellationToken cancellationToken_ = default);
|
Task<(string, Capnproto_test.Capnp.Test.TestPipeline.AnyBox)> GetAnyCap(uint n, BareProxy inCap, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5a404caa61d4cd0UL)]
|
||||||
public class TestPipeline_Proxy : Proxy, ITestPipeline
|
public class TestPipeline_Proxy : Proxy, ITestPipeline
|
||||||
{
|
{
|
||||||
public Task<(string, Capnproto_test.Capnp.Test.TestPipeline.Box)> GetCap(uint N, Capnproto_test.Capnp.Test.ITestInterface InCap, CancellationToken cancellationToken_ = default)
|
public Task<(string, Capnproto_test.Capnp.Test.TestPipeline.Box)> GetCap(uint n, Capnproto_test.Capnp.Test.ITestInterface inCap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_GetCap.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_GetCap.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_GetCap()
|
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_GetCap()
|
||||||
{ N = N, InCap = InCap };
|
{ N = n, InCap = inCap };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(11935670180855499984UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(11935670180855499984UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -11687,11 +11702,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task TestPointers(Capnproto_test.Capnp.Test.ITestInterface Cap, object Obj, IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> List, CancellationToken cancellationToken_ = default)
|
public async Task TestPointers(Capnproto_test.Capnp.Test.ITestInterface cap, object obj, IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> list, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_TestPointers.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_TestPointers.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_TestPointers()
|
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_TestPointers()
|
||||||
{ Cap = Cap, Obj = Obj, List = List };
|
{ Cap = cap, Obj = obj, List = list };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(11935670180855499984UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(11935670180855499984UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -11700,11 +11715,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<(string, Capnproto_test.Capnp.Test.TestPipeline.AnyBox)> GetAnyCap(uint N, BareProxy InCap, CancellationToken cancellationToken_ = default)
|
public Task<(string, Capnproto_test.Capnp.Test.TestPipeline.AnyBox)> GetAnyCap(uint n, BareProxy inCap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_GetAnyCap.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_GetAnyCap.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_GetAnyCap()
|
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_GetAnyCap()
|
||||||
{ N = N, InCap = InCap };
|
{ N = n, InCap = inCap };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(11935670180855499984UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(11935670180855499984UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -11719,6 +11734,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5a404caa61d4cd0UL)]
|
||||||
public class TestPipeline_Skeleton : Skeleton<ITestPipeline>
|
public class TestPipeline_Skeleton : Skeleton<ITestPipeline>
|
||||||
{
|
{
|
||||||
public TestPipeline_Skeleton()
|
public TestPipeline_Skeleton()
|
||||||
@ -12334,16 +12350,17 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0e77035bdff0051UL), Proxy(typeof(TestCallOrder_Proxy)), Skeleton(typeof(TestCallOrder_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0e77035bdff0051UL), Proxy(typeof(TestCallOrder_Proxy)), Skeleton(typeof(TestCallOrder_Skeleton))]
|
||||||
public interface ITestCallOrder : IDisposable
|
public interface ITestCallOrder : IDisposable
|
||||||
{
|
{
|
||||||
Task<uint> GetCallSequence(uint Expected, CancellationToken cancellationToken_ = default);
|
Task<uint> GetCallSequence(uint expected, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0e77035bdff0051UL)]
|
||||||
public class TestCallOrder_Proxy : Proxy, ITestCallOrder
|
public class TestCallOrder_Proxy : Proxy, ITestCallOrder
|
||||||
{
|
{
|
||||||
public async Task<uint> GetCallSequence(uint Expected, CancellationToken cancellationToken_ = default)
|
public async Task<uint> GetCallSequence(uint expected, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence()
|
var arg_ = new Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence()
|
||||||
{ Expected = Expected };
|
{ Expected = expected };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(11594359141811814481UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(11594359141811814481UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12353,6 +12370,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0e77035bdff0051UL)]
|
||||||
public class TestCallOrder_Skeleton : Skeleton<ITestCallOrder>
|
public class TestCallOrder_Skeleton : Skeleton<ITestCallOrder>
|
||||||
{
|
{
|
||||||
public TestCallOrder_Skeleton()
|
public TestCallOrder_Skeleton()
|
||||||
@ -12505,16 +12523,17 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddd699207eb8e23bUL), Proxy(typeof(TestTailCallee_Proxy)), Skeleton(typeof(TestTailCallee_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddd699207eb8e23bUL), Proxy(typeof(TestTailCallee_Proxy)), Skeleton(typeof(TestTailCallee_Skeleton))]
|
||||||
public interface ITestTailCallee : IDisposable
|
public interface ITestTailCallee : IDisposable
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int I, string T, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int i, string t, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddd699207eb8e23bUL)]
|
||||||
public class TestTailCallee_Proxy : Proxy, ITestTailCallee
|
public class TestTailCallee_Proxy : Proxy, ITestTailCallee
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int I, string T, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int i, string t, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestTailCallee.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestTailCallee.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestTailCallee.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestTailCallee.Params_Foo()
|
||||||
{ I = I, T = T };
|
{ I = i, T = t };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(15985132292242203195UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(15985132292242203195UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -12529,6 +12548,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddd699207eb8e23bUL)]
|
||||||
public class TestTailCallee_Skeleton : Skeleton<ITestTailCallee>
|
public class TestTailCallee_Skeleton : Skeleton<ITestTailCallee>
|
||||||
{
|
{
|
||||||
public TestTailCallee_Skeleton()
|
public TestTailCallee_Skeleton()
|
||||||
@ -12725,16 +12745,17 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x870bf40110ce3035UL), Proxy(typeof(TestTailCaller_Proxy)), Skeleton(typeof(TestTailCaller_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x870bf40110ce3035UL), Proxy(typeof(TestTailCaller_Proxy)), Skeleton(typeof(TestTailCaller_Skeleton))]
|
||||||
public interface ITestTailCaller : IDisposable
|
public interface ITestTailCaller : IDisposable
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int I, Capnproto_test.Capnp.Test.ITestTailCallee Callee, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int i, Capnproto_test.Capnp.Test.ITestTailCallee callee, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x870bf40110ce3035UL)]
|
||||||
public class TestTailCaller_Proxy : Proxy, ITestTailCaller
|
public class TestTailCaller_Proxy : Proxy, ITestTailCaller
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int I, Capnproto_test.Capnp.Test.ITestTailCallee Callee, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int i, Capnproto_test.Capnp.Test.ITestTailCallee callee, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestTailCaller.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestTailCaller.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestTailCaller.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestTailCaller.Params_Foo()
|
||||||
{ I = I, Callee = Callee };
|
{ I = i, Callee = callee };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(9731139705278181429UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(9731139705278181429UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -12749,6 +12770,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x870bf40110ce3035UL)]
|
||||||
public class TestTailCaller_Skeleton : Skeleton<ITestTailCaller>
|
public class TestTailCaller_Skeleton : Skeleton<ITestTailCaller>
|
||||||
{
|
{
|
||||||
public TestTailCaller_Skeleton()
|
public TestTailCaller_Skeleton()
|
||||||
@ -12857,10 +12879,12 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa38e5efe41e53a15UL)]
|
||||||
public class TestHandle_Proxy : Proxy, ITestHandle
|
public class TestHandle_Proxy : Proxy, ITestHandle
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa38e5efe41e53a15UL)]
|
||||||
public class TestHandle_Skeleton : Skeleton<ITestHandle>
|
public class TestHandle_Skeleton : Skeleton<ITestHandle>
|
||||||
{
|
{
|
||||||
public TestHandle_Skeleton()
|
public TestHandle_Skeleton()
|
||||||
@ -12874,28 +12898,29 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc70bf9784133cfUL), Proxy(typeof(TestMoreStuff_Proxy)), Skeleton(typeof(TestMoreStuff_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc70bf9784133cfUL), Proxy(typeof(TestMoreStuff_Proxy)), Skeleton(typeof(TestMoreStuff_Skeleton))]
|
||||||
public interface ITestMoreStuff : Capnproto_test.Capnp.Test.ITestCallOrder
|
public interface ITestMoreStuff : Capnproto_test.Capnp.Test.ITestCallOrder
|
||||||
{
|
{
|
||||||
Task<string> CallFoo(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task<string> CallFoo(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task<string> CallFooWhenResolved(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task<string> CallFooWhenResolved(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestInterface> NeverReturn(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestInterface> NeverReturn(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task Hold(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task Hold(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task<string> CallHeld(CancellationToken cancellationToken_ = default);
|
Task<string> CallHeld(CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestInterface> GetHeld(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestInterface> GetHeld(CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestCallOrder> Echo(Capnproto_test.Capnp.Test.ITestCallOrder Cap, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestCallOrder> Echo(Capnproto_test.Capnp.Test.ITestCallOrder cap, CancellationToken cancellationToken_ = default);
|
||||||
Task ExpectCancel(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task ExpectCancel(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task<(string, string)> MethodWithDefaults(string A, uint B, string C, CancellationToken cancellationToken_ = default);
|
Task<(string, string)> MethodWithDefaults(string a, uint b, string c, CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestHandle> GetHandle(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestHandle> GetHandle(CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestMoreStuff> GetNull(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestMoreStuff> GetNull(CancellationToken cancellationToken_ = default);
|
||||||
Task<string> GetEnormousString(CancellationToken cancellationToken_ = default);
|
Task<string> GetEnormousString(CancellationToken cancellationToken_ = default);
|
||||||
Task MethodWithNullDefault(string A, Capnproto_test.Capnp.Test.ITestInterface B, CancellationToken cancellationToken_ = default);
|
Task MethodWithNullDefault(string a, Capnproto_test.Capnp.Test.ITestInterface b, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc70bf9784133cfUL)]
|
||||||
public class TestMoreStuff_Proxy : Proxy, ITestMoreStuff
|
public class TestMoreStuff_Proxy : Proxy, ITestMoreStuff
|
||||||
{
|
{
|
||||||
public async Task<string> CallFoo(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public async Task<string> CallFoo(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFoo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFoo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFoo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFoo()
|
||||||
{ Cap = Cap };
|
{ Cap = cap };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12904,11 +12929,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<string> CallFooWhenResolved(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public async Task<string> CallFooWhenResolved(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFooWhenResolved.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFooWhenResolved.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFooWhenResolved()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFooWhenResolved()
|
||||||
{ Cap = Cap };
|
{ Cap = cap };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12917,11 +12942,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<Capnproto_test.Capnp.Test.ITestInterface> NeverReturn(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.ITestInterface> NeverReturn(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_NeverReturn.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_NeverReturn.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_NeverReturn()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_NeverReturn()
|
||||||
{ Cap = Cap };
|
{ Cap = cap };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(15980754968839795663UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(15980754968839795663UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -12935,11 +12960,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task Hold(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public async Task Hold(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_Hold.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_Hold.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_Hold()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_Hold()
|
||||||
{ Cap = Cap };
|
{ Cap = cap };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 3, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 3, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12979,11 +13004,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<Capnproto_test.Capnp.Test.ITestCallOrder> Echo(Capnproto_test.Capnp.Test.ITestCallOrder Cap, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.ITestCallOrder> Echo(Capnproto_test.Capnp.Test.ITestCallOrder cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_Echo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_Echo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_Echo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_Echo()
|
||||||
{ Cap = Cap };
|
{ Cap = cap };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(15980754968839795663UL, 6, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(15980754968839795663UL, 6, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -12997,11 +13022,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task ExpectCancel(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public async Task ExpectCancel(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_ExpectCancel.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_ExpectCancel.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_ExpectCancel()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_ExpectCancel()
|
||||||
{ Cap = Cap };
|
{ Cap = cap };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 7, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 7, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -13010,11 +13035,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<(string, string)> MethodWithDefaults(string A, uint B, string C, CancellationToken cancellationToken_ = default)
|
public async Task<(string, string)> MethodWithDefaults(string a, uint b, string c, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithDefaults.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithDefaults.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithDefaults()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithDefaults()
|
||||||
{ A = A, B = B, C = C };
|
{ A = a, B = b, C = c };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 8, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 8, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -13072,11 +13097,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task MethodWithNullDefault(string A, Capnproto_test.Capnp.Test.ITestInterface B, CancellationToken cancellationToken_ = default)
|
public async Task MethodWithNullDefault(string a, Capnproto_test.Capnp.Test.ITestInterface b, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithNullDefault.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithNullDefault.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithNullDefault()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithNullDefault()
|
||||||
{ A = A, B = B };
|
{ A = a, B = b };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 12, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 12, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -13085,11 +13110,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<uint> GetCallSequence(uint Expected, CancellationToken cancellationToken_ = default)
|
public async Task<uint> GetCallSequence(uint expected, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence()
|
var arg_ = new Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence()
|
||||||
{ Expected = Expected };
|
{ Expected = expected };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(11594359141811814481UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(11594359141811814481UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -13099,6 +13124,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc70bf9784133cfUL)]
|
||||||
public class TestMoreStuff_Skeleton : Skeleton<ITestMoreStuff>
|
public class TestMoreStuff_Skeleton : Skeleton<ITestMoreStuff>
|
||||||
{
|
{
|
||||||
public TestMoreStuff_Skeleton()
|
public TestMoreStuff_Skeleton()
|
||||||
@ -14816,12 +14842,13 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
public interface ITestMembrane : IDisposable
|
public interface ITestMembrane : IDisposable
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> MakeThing(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> MakeThing(CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallPassThrough(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, bool TailCall, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallPassThrough(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, bool tailCall, CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallIntercept(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, bool TailCall, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallIntercept(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, bool tailCall, CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> Loopback(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> Loopback(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, CancellationToken cancellationToken_ = default);
|
||||||
Task WaitForever(CancellationToken cancellationToken_ = default);
|
Task WaitForever(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc07d8dcd80a69c0cUL)]
|
||||||
public class TestMembrane_Proxy : Proxy, ITestMembrane
|
public class TestMembrane_Proxy : Proxy, ITestMembrane
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> MakeThing(CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> MakeThing(CancellationToken cancellationToken_ = default)
|
||||||
@ -14842,11 +14869,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallPassThrough(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, bool TailCall, CancellationToken cancellationToken_ = default)
|
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallPassThrough(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, bool tailCall, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_CallPassThrough.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_CallPassThrough.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_CallPassThrough()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_CallPassThrough()
|
||||||
{ Thing = Thing, TailCall = TailCall };
|
{ Thing = thing, TailCall = tailCall };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(13870398341137210380UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(13870398341137210380UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -14855,11 +14882,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallIntercept(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, bool TailCall, CancellationToken cancellationToken_ = default)
|
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallIntercept(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, bool tailCall, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_CallIntercept.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_CallIntercept.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_CallIntercept()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_CallIntercept()
|
||||||
{ Thing = Thing, TailCall = TailCall };
|
{ Thing = thing, TailCall = tailCall };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(13870398341137210380UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(13870398341137210380UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -14868,11 +14895,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> Loopback(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> Loopback(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_Loopback.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_Loopback.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_Loopback()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_Loopback()
|
||||||
{ Thing = Thing };
|
{ Thing = thing };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(13870398341137210380UL, 3, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(13870398341137210380UL, 3, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -14900,6 +14927,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc07d8dcd80a69c0cUL)]
|
||||||
public class TestMembrane_Skeleton : Skeleton<ITestMembrane>
|
public class TestMembrane_Skeleton : Skeleton<ITestMembrane>
|
||||||
{
|
{
|
||||||
public TestMembrane_Skeleton()
|
public TestMembrane_Skeleton()
|
||||||
@ -14993,6 +15021,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> Intercept(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> Intercept(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9352e4e41f173917UL)]
|
||||||
public class Thing_Proxy : Proxy, IThing
|
public class Thing_Proxy : Proxy, IThing
|
||||||
{
|
{
|
||||||
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> PassThrough(CancellationToken cancellationToken_ = default)
|
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> PassThrough(CancellationToken cancellationToken_ = default)
|
||||||
@ -15022,6 +15051,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9352e4e41f173917UL)]
|
||||||
public class Thing_Skeleton : Skeleton<IThing>
|
public class Thing_Skeleton : Skeleton<IThing>
|
||||||
{
|
{
|
||||||
public Thing_Skeleton()
|
public Thing_Skeleton()
|
||||||
@ -15899,6 +15929,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task Return(CancellationToken cancellationToken_ = default);
|
Task Return(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9ae342d394247cfcUL)]
|
||||||
public class TestKeywordMethods_Proxy : Proxy, ITestKeywordMethods
|
public class TestKeywordMethods_Proxy : Proxy, ITestKeywordMethods
|
||||||
{
|
{
|
||||||
public async Task Delete(CancellationToken cancellationToken_ = default)
|
public async Task Delete(CancellationToken cancellationToken_ = default)
|
||||||
@ -15954,6 +15985,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9ae342d394247cfcUL)]
|
||||||
public class TestKeywordMethods_Skeleton : Skeleton<ITestKeywordMethods>
|
public class TestKeywordMethods_Skeleton : Skeleton<ITestKeywordMethods>
|
||||||
{
|
{
|
||||||
public TestKeywordMethods_Skeleton()
|
public TestKeywordMethods_Skeleton()
|
||||||
@ -16372,6 +16404,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task<TVatId> GetCallerId(CancellationToken cancellationToken_ = default);
|
Task<TVatId> GetCallerId(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xea72cc77253798cdUL)]
|
||||||
public class TestAuthenticatedBootstrap_Proxy<TVatId> : Proxy, ITestAuthenticatedBootstrap<TVatId> where TVatId : class
|
public class TestAuthenticatedBootstrap_Proxy<TVatId> : Proxy, ITestAuthenticatedBootstrap<TVatId> where TVatId : class
|
||||||
{
|
{
|
||||||
public Task<TVatId> GetCallerId(CancellationToken cancellationToken_ = default)
|
public Task<TVatId> GetCallerId(CancellationToken cancellationToken_ = default)
|
||||||
@ -16393,6 +16426,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xea72cc77253798cdUL)]
|
||||||
public class TestAuthenticatedBootstrap_Skeleton<TVatId> : Skeleton<ITestAuthenticatedBootstrap<TVatId>> where TVatId : class
|
public class TestAuthenticatedBootstrap_Skeleton<TVatId> : Skeleton<ITestAuthenticatedBootstrap<TVatId>> where TVatId : class
|
||||||
{
|
{
|
||||||
public TestAuthenticatedBootstrap_Skeleton()
|
public TestAuthenticatedBootstrap_Skeleton()
|
||||||
@ -17349,16 +17383,17 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd112a69d31ed918bUL), Proxy(typeof(TestNameAnnotationInterface_Proxy)), Skeleton(typeof(TestNameAnnotationInterface_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd112a69d31ed918bUL), Proxy(typeof(TestNameAnnotationInterface_Proxy)), Skeleton(typeof(TestNameAnnotationInterface_Skeleton))]
|
||||||
public interface ITestNameAnnotationInterface : IDisposable
|
public interface ITestNameAnnotationInterface : IDisposable
|
||||||
{
|
{
|
||||||
Task BadlyNamedMethod(byte BadlyNamedParam, CancellationToken cancellationToken_ = default);
|
Task BadlyNamedMethod(byte badlyNamedParam, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd112a69d31ed918bUL)]
|
||||||
public class TestNameAnnotationInterface_Proxy : Proxy, ITestNameAnnotationInterface
|
public class TestNameAnnotationInterface_Proxy : Proxy, ITestNameAnnotationInterface
|
||||||
{
|
{
|
||||||
public async Task BadlyNamedMethod(byte BadlyNamedParam, CancellationToken cancellationToken_ = default)
|
public async Task BadlyNamedMethod(byte badlyNamedParam, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestNameAnnotationInterface.Params_BadlyNamedMethod.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestNameAnnotationInterface.Params_BadlyNamedMethod.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestNameAnnotationInterface.Params_BadlyNamedMethod()
|
var arg_ = new Capnproto_test.Capnp.Test.TestNameAnnotationInterface.Params_BadlyNamedMethod()
|
||||||
{ BadlyNamedParam = BadlyNamedParam };
|
{ BadlyNamedParam = badlyNamedParam };
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15065286897585459595UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15065286897585459595UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -17368,6 +17403,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd112a69d31ed918bUL)]
|
||||||
public class TestNameAnnotationInterface_Skeleton : Skeleton<ITestNameAnnotationInterface>
|
public class TestNameAnnotationInterface_Skeleton : Skeleton<ITestNameAnnotationInterface>
|
||||||
{
|
{
|
||||||
public TestNameAnnotationInterface_Skeleton()
|
public TestNameAnnotationInterface_Skeleton()
|
||||||
|
@ -8473,6 +8473,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task Call(CancellationToken cancellationToken_ = default);
|
Task Call(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8839ed86c9794287UL)]
|
||||||
public class DeepNestInterface_Proxy<TQuux> : Proxy, IDeepNestInterface<TQuux> where TQuux : class
|
public class DeepNestInterface_Proxy<TQuux> : Proxy, IDeepNestInterface<TQuux> where TQuux : class
|
||||||
{
|
{
|
||||||
public async Task Call(CancellationToken cancellationToken_ = default)
|
public async Task Call(CancellationToken cancellationToken_ = default)
|
||||||
@ -8489,6 +8490,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8839ed86c9794287UL)]
|
||||||
public class DeepNestInterface_Skeleton<TQuux> : Skeleton<IDeepNestInterface<TQuux>> where TQuux : class
|
public class DeepNestInterface_Skeleton<TQuux> : Skeleton<IDeepNestInterface<TQuux>> where TQuux : class
|
||||||
{
|
{
|
||||||
public DeepNestInterface_Skeleton()
|
public DeepNestInterface_Skeleton()
|
||||||
@ -8610,6 +8612,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task<(TQux, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>)> Call(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string> arg_, CancellationToken cancellationToken_ = default);
|
Task<(TQux, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>)> Call(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string> arg_, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc9e749e8dd54da5cUL)]
|
||||||
public class Interface_Proxy<TQux> : Proxy, IInterface<TQux> where TQux : class
|
public class Interface_Proxy<TQux> : Proxy, IInterface<TQux> where TQux : class
|
||||||
{
|
{
|
||||||
public Task<(TQux, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>)> Call(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string> arg_, CancellationToken cancellationToken_ = default)
|
public Task<(TQux, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>)> Call(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string> arg_, CancellationToken cancellationToken_ = default)
|
||||||
@ -8629,6 +8632,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc9e749e8dd54da5cUL)]
|
||||||
public class Interface_Skeleton<TQux> : Skeleton<IInterface<TQux>> where TQux : class
|
public class Interface_Skeleton<TQux> : Skeleton<IInterface<TQux>> where TQux : class
|
||||||
{
|
{
|
||||||
public Interface_Skeleton()
|
public Interface_Skeleton()
|
||||||
@ -8992,18 +8996,19 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8b9717a3f8d85a9aUL), Proxy(typeof(TestImplicitMethodParams_Proxy)), Skeleton(typeof(TestImplicitMethodParams_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8b9717a3f8d85a9aUL), Proxy(typeof(TestImplicitMethodParams_Proxy)), Skeleton(typeof(TestImplicitMethodParams_Skeleton))]
|
||||||
public interface ITestImplicitMethodParams : IDisposable
|
public interface ITestImplicitMethodParams : IDisposable
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT Foo, TU Bar, CancellationToken cancellationToken_ = default)
|
Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT foo, TU bar, CancellationToken cancellationToken_ = default)
|
||||||
where TT : class where TU : class;
|
where TT : class where TU : class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8b9717a3f8d85a9aUL)]
|
||||||
public class TestImplicitMethodParams_Proxy : Proxy, ITestImplicitMethodParams
|
public class TestImplicitMethodParams_Proxy : Proxy, ITestImplicitMethodParams
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT Foo, TU Bar, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT foo, TU bar, CancellationToken cancellationToken_ = default)
|
||||||
where TT : class where TU : class
|
where TT : class where TU : class
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestImplicitMethodParams.Params_Call<TT, TU>.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestImplicitMethodParams.Params_Call<TT, TU>.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestImplicitMethodParams.Params_Call<TT, TU>()
|
var arg_ = new Capnproto_test.Capnp.Test.TestImplicitMethodParams.Params_Call<TT, TU>()
|
||||||
{Foo = Foo, Bar = Bar};
|
{Foo = foo, Bar = bar};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(10058534285777328794UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(10058534285777328794UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -9018,6 +9023,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8b9717a3f8d85a9aUL)]
|
||||||
public class TestImplicitMethodParams_Skeleton : Skeleton<ITestImplicitMethodParams>
|
public class TestImplicitMethodParams_Skeleton : Skeleton<ITestImplicitMethodParams>
|
||||||
{
|
{
|
||||||
public TestImplicitMethodParams_Skeleton()
|
public TestImplicitMethodParams_Skeleton()
|
||||||
@ -9125,18 +9131,19 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdf9ccdeb81a704c9UL), Proxy(typeof(TestImplicitMethodParamsInGeneric_Proxy<>)), Skeleton(typeof(TestImplicitMethodParamsInGeneric_Skeleton<>))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdf9ccdeb81a704c9UL), Proxy(typeof(TestImplicitMethodParamsInGeneric_Proxy<>)), Skeleton(typeof(TestImplicitMethodParamsInGeneric_Skeleton<>))]
|
||||||
public interface ITestImplicitMethodParamsInGeneric<TV> : IDisposable where TV : class
|
public interface ITestImplicitMethodParamsInGeneric<TV> : IDisposable where TV : class
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT Foo, TU Bar, CancellationToken cancellationToken_ = default)
|
Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT foo, TU bar, CancellationToken cancellationToken_ = default)
|
||||||
where TT : class where TU : class;
|
where TT : class where TU : class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdf9ccdeb81a704c9UL)]
|
||||||
public class TestImplicitMethodParamsInGeneric_Proxy<TV> : Proxy, ITestImplicitMethodParamsInGeneric<TV> where TV : class
|
public class TestImplicitMethodParamsInGeneric_Proxy<TV> : Proxy, ITestImplicitMethodParamsInGeneric<TV> where TV : class
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT Foo, TU Bar, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestGenerics<TT, TU>> Call<TT, TU>(TT foo, TU bar, CancellationToken cancellationToken_ = default)
|
||||||
where TT : class where TU : class
|
where TT : class where TU : class
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestImplicitMethodParamsInGeneric<TV>.Params_Call<TT, TU>.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestImplicitMethodParamsInGeneric<TV>.Params_Call<TT, TU>.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestImplicitMethodParamsInGeneric<TV>.Params_Call<TT, TU>()
|
var arg_ = new Capnproto_test.Capnp.Test.TestImplicitMethodParamsInGeneric<TV>.Params_Call<TT, TU>()
|
||||||
{Foo = Foo, Bar = Bar};
|
{Foo = foo, Bar = bar};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(16112979978201007305UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(16112979978201007305UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -9151,6 +9158,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdf9ccdeb81a704c9UL)]
|
||||||
public class TestImplicitMethodParamsInGeneric_Skeleton<TV> : Skeleton<ITestImplicitMethodParamsInGeneric<TV>> where TV : class
|
public class TestImplicitMethodParamsInGeneric_Skeleton<TV> : Skeleton<ITestImplicitMethodParamsInGeneric<TV>> where TV : class
|
||||||
{
|
{
|
||||||
public TestImplicitMethodParamsInGeneric_Skeleton()
|
public TestImplicitMethodParamsInGeneric_Skeleton()
|
||||||
@ -10040,18 +10048,19 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x88eb12a0e0af92b2UL), Proxy(typeof(TestInterface_Proxy)), Skeleton(typeof(TestInterface_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x88eb12a0e0af92b2UL), Proxy(typeof(TestInterface_Proxy)), Skeleton(typeof(TestInterface_Skeleton))]
|
||||||
public interface ITestInterface : IDisposable
|
public interface ITestInterface : IDisposable
|
||||||
{
|
{
|
||||||
Task<string> Foo(uint I, bool J, CancellationToken cancellationToken_ = default);
|
Task<string> Foo(uint i, bool j, CancellationToken cancellationToken_ = default);
|
||||||
Task Bar(CancellationToken cancellationToken_ = default);
|
Task Bar(CancellationToken cancellationToken_ = default);
|
||||||
Task Baz(Capnproto_test.Capnp.Test.TestAllTypes S, CancellationToken cancellationToken_ = default);
|
Task Baz(Capnproto_test.Capnp.Test.TestAllTypes s, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x88eb12a0e0af92b2UL)]
|
||||||
public class TestInterface_Proxy : Proxy, ITestInterface
|
public class TestInterface_Proxy : Proxy, ITestInterface
|
||||||
{
|
{
|
||||||
public async Task<string> Foo(uint I, bool J, CancellationToken cancellationToken_ = default)
|
public async Task<string> Foo(uint i, bool j, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
||||||
{I = I, J = J};
|
{I = i, J = j};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -10073,11 +10082,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes S, CancellationToken cancellationToken_ = default)
|
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes s, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
||||||
{S = S};
|
{S = s};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -10087,6 +10096,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x88eb12a0e0af92b2UL)]
|
||||||
public class TestInterface_Skeleton : Skeleton<ITestInterface>
|
public class TestInterface_Skeleton : Skeleton<ITestInterface>
|
||||||
{
|
{
|
||||||
public TestInterface_Skeleton()
|
public TestInterface_Skeleton()
|
||||||
@ -10475,6 +10485,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task<Capnproto_test.Capnp.Test.TestAllTypes> Grault(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestAllTypes> Grault(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe4e9bac98670b748UL)]
|
||||||
public class TestExtends_Proxy : Proxy, ITestExtends
|
public class TestExtends_Proxy : Proxy, ITestExtends
|
||||||
{
|
{
|
||||||
public async Task Qux(CancellationToken cancellationToken_ = default)
|
public async Task Qux(CancellationToken cancellationToken_ = default)
|
||||||
@ -10514,11 +10525,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<string> Foo(uint I, bool J, CancellationToken cancellationToken_ = default)
|
public async Task<string> Foo(uint i, bool j, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
||||||
{I = I, J = J};
|
{I = i, J = j};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -10540,11 +10551,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes S, CancellationToken cancellationToken_ = default)
|
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes s, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
||||||
{S = S};
|
{S = s};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -10554,6 +10565,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe4e9bac98670b748UL)]
|
||||||
public class TestExtends_Skeleton : Skeleton<ITestExtends>
|
public class TestExtends_Skeleton : Skeleton<ITestExtends>
|
||||||
{
|
{
|
||||||
public TestExtends_Skeleton()
|
public TestExtends_Skeleton()
|
||||||
@ -10786,6 +10798,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x98d7e0ef61488783UL)]
|
||||||
public class TestExtends2_Proxy : Proxy, ITestExtends2
|
public class TestExtends2_Proxy : Proxy, ITestExtends2
|
||||||
{
|
{
|
||||||
public async Task Qux(CancellationToken cancellationToken_ = default)
|
public async Task Qux(CancellationToken cancellationToken_ = default)
|
||||||
@ -10825,11 +10838,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<string> Foo(uint I, bool J, CancellationToken cancellationToken_ = default)
|
public async Task<string> Foo(uint i, bool j, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Foo()
|
||||||
{I = I, J = J};
|
{I = i, J = j};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -10851,11 +10864,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes S, CancellationToken cancellationToken_ = default)
|
public async Task Baz(Capnproto_test.Capnp.Test.TestAllTypes s, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestInterface.Params_Baz.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
var arg_ = new Capnproto_test.Capnp.Test.TestInterface.Params_Baz()
|
||||||
{S = S};
|
{S = s};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(9865999890858873522UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -10865,6 +10878,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x98d7e0ef61488783UL)]
|
||||||
public class TestExtends2_Skeleton : Skeleton<ITestExtends2>
|
public class TestExtends2_Skeleton : Skeleton<ITestExtends2>
|
||||||
{
|
{
|
||||||
public TestExtends2_Skeleton()
|
public TestExtends2_Skeleton()
|
||||||
@ -10878,18 +10892,19 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5a404caa61d4cd0UL), Proxy(typeof(TestPipeline_Proxy)), Skeleton(typeof(TestPipeline_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5a404caa61d4cd0UL), Proxy(typeof(TestPipeline_Proxy)), Skeleton(typeof(TestPipeline_Skeleton))]
|
||||||
public interface ITestPipeline : IDisposable
|
public interface ITestPipeline : IDisposable
|
||||||
{
|
{
|
||||||
Task<(string, Capnproto_test.Capnp.Test.TestPipeline.Box)> GetCap(uint N, Capnproto_test.Capnp.Test.ITestInterface InCap, CancellationToken cancellationToken_ = default);
|
Task<(string, Capnproto_test.Capnp.Test.TestPipeline.Box)> GetCap(uint n, Capnproto_test.Capnp.Test.ITestInterface inCap, CancellationToken cancellationToken_ = default);
|
||||||
Task TestPointers(Capnproto_test.Capnp.Test.ITestInterface Cap, object Obj, IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> List, CancellationToken cancellationToken_ = default);
|
Task TestPointers(Capnproto_test.Capnp.Test.ITestInterface cap, object obj, IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> list, CancellationToken cancellationToken_ = default);
|
||||||
Task<(string, Capnproto_test.Capnp.Test.TestPipeline.AnyBox)> GetAnyCap(uint N, BareProxy InCap, CancellationToken cancellationToken_ = default);
|
Task<(string, Capnproto_test.Capnp.Test.TestPipeline.AnyBox)> GetAnyCap(uint n, BareProxy inCap, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5a404caa61d4cd0UL)]
|
||||||
public class TestPipeline_Proxy : Proxy, ITestPipeline
|
public class TestPipeline_Proxy : Proxy, ITestPipeline
|
||||||
{
|
{
|
||||||
public Task<(string, Capnproto_test.Capnp.Test.TestPipeline.Box)> GetCap(uint N, Capnproto_test.Capnp.Test.ITestInterface InCap, CancellationToken cancellationToken_ = default)
|
public Task<(string, Capnproto_test.Capnp.Test.TestPipeline.Box)> GetCap(uint n, Capnproto_test.Capnp.Test.ITestInterface inCap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_GetCap.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_GetCap.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_GetCap()
|
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_GetCap()
|
||||||
{N = N, InCap = InCap};
|
{N = n, InCap = inCap};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(11935670180855499984UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(11935670180855499984UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -10903,11 +10918,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task TestPointers(Capnproto_test.Capnp.Test.ITestInterface Cap, object Obj, IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> List, CancellationToken cancellationToken_ = default)
|
public async Task TestPointers(Capnproto_test.Capnp.Test.ITestInterface cap, object obj, IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> list, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_TestPointers.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_TestPointers.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_TestPointers()
|
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_TestPointers()
|
||||||
{Cap = Cap, Obj = Obj, List = List};
|
{Cap = cap, Obj = obj, List = list};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(11935670180855499984UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(11935670180855499984UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -10916,11 +10931,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<(string, Capnproto_test.Capnp.Test.TestPipeline.AnyBox)> GetAnyCap(uint N, BareProxy InCap, CancellationToken cancellationToken_ = default)
|
public Task<(string, Capnproto_test.Capnp.Test.TestPipeline.AnyBox)> GetAnyCap(uint n, BareProxy inCap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_GetAnyCap.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestPipeline.Params_GetAnyCap.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_GetAnyCap()
|
var arg_ = new Capnproto_test.Capnp.Test.TestPipeline.Params_GetAnyCap()
|
||||||
{N = N, InCap = InCap};
|
{N = n, InCap = inCap};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(11935670180855499984UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(11935670180855499984UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -10935,6 +10950,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5a404caa61d4cd0UL)]
|
||||||
public class TestPipeline_Skeleton : Skeleton<ITestPipeline>
|
public class TestPipeline_Skeleton : Skeleton<ITestPipeline>
|
||||||
{
|
{
|
||||||
public TestPipeline_Skeleton()
|
public TestPipeline_Skeleton()
|
||||||
@ -11550,16 +11566,17 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0e77035bdff0051UL), Proxy(typeof(TestCallOrder_Proxy)), Skeleton(typeof(TestCallOrder_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0e77035bdff0051UL), Proxy(typeof(TestCallOrder_Proxy)), Skeleton(typeof(TestCallOrder_Skeleton))]
|
||||||
public interface ITestCallOrder : IDisposable
|
public interface ITestCallOrder : IDisposable
|
||||||
{
|
{
|
||||||
Task<uint> GetCallSequence(uint Expected, CancellationToken cancellationToken_ = default);
|
Task<uint> GetCallSequence(uint expected, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0e77035bdff0051UL)]
|
||||||
public class TestCallOrder_Proxy : Proxy, ITestCallOrder
|
public class TestCallOrder_Proxy : Proxy, ITestCallOrder
|
||||||
{
|
{
|
||||||
public async Task<uint> GetCallSequence(uint Expected, CancellationToken cancellationToken_ = default)
|
public async Task<uint> GetCallSequence(uint expected, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence()
|
var arg_ = new Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence()
|
||||||
{Expected = Expected};
|
{Expected = expected};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(11594359141811814481UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(11594359141811814481UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -11569,6 +11586,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0e77035bdff0051UL)]
|
||||||
public class TestCallOrder_Skeleton : Skeleton<ITestCallOrder>
|
public class TestCallOrder_Skeleton : Skeleton<ITestCallOrder>
|
||||||
{
|
{
|
||||||
public TestCallOrder_Skeleton()
|
public TestCallOrder_Skeleton()
|
||||||
@ -11721,16 +11739,17 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddd699207eb8e23bUL), Proxy(typeof(TestTailCallee_Proxy)), Skeleton(typeof(TestTailCallee_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddd699207eb8e23bUL), Proxy(typeof(TestTailCallee_Proxy)), Skeleton(typeof(TestTailCallee_Skeleton))]
|
||||||
public interface ITestTailCallee : IDisposable
|
public interface ITestTailCallee : IDisposable
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int I, string T, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int i, string t, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddd699207eb8e23bUL)]
|
||||||
public class TestTailCallee_Proxy : Proxy, ITestTailCallee
|
public class TestTailCallee_Proxy : Proxy, ITestTailCallee
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int I, string T, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int i, string t, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestTailCallee.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestTailCallee.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestTailCallee.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestTailCallee.Params_Foo()
|
||||||
{I = I, T = T};
|
{I = i, T = t};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(15985132292242203195UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(15985132292242203195UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -11745,6 +11764,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddd699207eb8e23bUL)]
|
||||||
public class TestTailCallee_Skeleton : Skeleton<ITestTailCallee>
|
public class TestTailCallee_Skeleton : Skeleton<ITestTailCallee>
|
||||||
{
|
{
|
||||||
public TestTailCallee_Skeleton()
|
public TestTailCallee_Skeleton()
|
||||||
@ -11941,16 +11961,17 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x870bf40110ce3035UL), Proxy(typeof(TestTailCaller_Proxy)), Skeleton(typeof(TestTailCaller_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x870bf40110ce3035UL), Proxy(typeof(TestTailCaller_Proxy)), Skeleton(typeof(TestTailCaller_Skeleton))]
|
||||||
public interface ITestTailCaller : IDisposable
|
public interface ITestTailCaller : IDisposable
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int I, Capnproto_test.Capnp.Test.ITestTailCallee Callee, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int i, Capnproto_test.Capnp.Test.ITestTailCallee callee, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x870bf40110ce3035UL)]
|
||||||
public class TestTailCaller_Proxy : Proxy, ITestTailCaller
|
public class TestTailCaller_Proxy : Proxy, ITestTailCaller
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int I, Capnproto_test.Capnp.Test.ITestTailCallee Callee, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestTailCallee.TailResult> Foo(int i, Capnproto_test.Capnp.Test.ITestTailCallee callee, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestTailCaller.Params_Foo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestTailCaller.Params_Foo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestTailCaller.Params_Foo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestTailCaller.Params_Foo()
|
||||||
{I = I, Callee = Callee};
|
{I = i, Callee = callee};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(9731139705278181429UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(9731139705278181429UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -11965,6 +11986,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x870bf40110ce3035UL)]
|
||||||
public class TestTailCaller_Skeleton : Skeleton<ITestTailCaller>
|
public class TestTailCaller_Skeleton : Skeleton<ITestTailCaller>
|
||||||
{
|
{
|
||||||
public TestTailCaller_Skeleton()
|
public TestTailCaller_Skeleton()
|
||||||
@ -12073,10 +12095,12 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa38e5efe41e53a15UL)]
|
||||||
public class TestHandle_Proxy : Proxy, ITestHandle
|
public class TestHandle_Proxy : Proxy, ITestHandle
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa38e5efe41e53a15UL)]
|
||||||
public class TestHandle_Skeleton : Skeleton<ITestHandle>
|
public class TestHandle_Skeleton : Skeleton<ITestHandle>
|
||||||
{
|
{
|
||||||
public TestHandle_Skeleton()
|
public TestHandle_Skeleton()
|
||||||
@ -12090,28 +12114,29 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc70bf9784133cfUL), Proxy(typeof(TestMoreStuff_Proxy)), Skeleton(typeof(TestMoreStuff_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc70bf9784133cfUL), Proxy(typeof(TestMoreStuff_Proxy)), Skeleton(typeof(TestMoreStuff_Skeleton))]
|
||||||
public interface ITestMoreStuff : Capnproto_test.Capnp.Test.ITestCallOrder
|
public interface ITestMoreStuff : Capnproto_test.Capnp.Test.ITestCallOrder
|
||||||
{
|
{
|
||||||
Task<string> CallFoo(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task<string> CallFoo(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task<string> CallFooWhenResolved(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task<string> CallFooWhenResolved(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestInterface> NeverReturn(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestInterface> NeverReturn(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task Hold(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task Hold(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task<string> CallHeld(CancellationToken cancellationToken_ = default);
|
Task<string> CallHeld(CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestInterface> GetHeld(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestInterface> GetHeld(CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestCallOrder> Echo(Capnproto_test.Capnp.Test.ITestCallOrder Cap, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestCallOrder> Echo(Capnproto_test.Capnp.Test.ITestCallOrder cap, CancellationToken cancellationToken_ = default);
|
||||||
Task ExpectCancel(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default);
|
Task ExpectCancel(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default);
|
||||||
Task<(string, string)> MethodWithDefaults(string A, uint B, string C, CancellationToken cancellationToken_ = default);
|
Task<(string, string)> MethodWithDefaults(string a, uint b, string c, CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestHandle> GetHandle(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestHandle> GetHandle(CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.ITestMoreStuff> GetNull(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.ITestMoreStuff> GetNull(CancellationToken cancellationToken_ = default);
|
||||||
Task<string> GetEnormousString(CancellationToken cancellationToken_ = default);
|
Task<string> GetEnormousString(CancellationToken cancellationToken_ = default);
|
||||||
Task MethodWithNullDefault(string A, Capnproto_test.Capnp.Test.ITestInterface B, CancellationToken cancellationToken_ = default);
|
Task MethodWithNullDefault(string a, Capnproto_test.Capnp.Test.ITestInterface b, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc70bf9784133cfUL)]
|
||||||
public class TestMoreStuff_Proxy : Proxy, ITestMoreStuff
|
public class TestMoreStuff_Proxy : Proxy, ITestMoreStuff
|
||||||
{
|
{
|
||||||
public async Task<string> CallFoo(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public async Task<string> CallFoo(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFoo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFoo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFoo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFoo()
|
||||||
{Cap = Cap};
|
{Cap = cap};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12120,11 +12145,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<string> CallFooWhenResolved(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public async Task<string> CallFooWhenResolved(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFooWhenResolved.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFooWhenResolved.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFooWhenResolved()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_CallFooWhenResolved()
|
||||||
{Cap = Cap};
|
{Cap = cap};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12133,11 +12158,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<Capnproto_test.Capnp.Test.ITestInterface> NeverReturn(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.ITestInterface> NeverReturn(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_NeverReturn.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_NeverReturn.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_NeverReturn()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_NeverReturn()
|
||||||
{Cap = Cap};
|
{Cap = cap};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(15980754968839795663UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(15980754968839795663UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -12151,11 +12176,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task Hold(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public async Task Hold(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_Hold.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_Hold.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_Hold()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_Hold()
|
||||||
{Cap = Cap};
|
{Cap = cap};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 3, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 3, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12195,11 +12220,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<Capnproto_test.Capnp.Test.ITestCallOrder> Echo(Capnproto_test.Capnp.Test.ITestCallOrder Cap, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.ITestCallOrder> Echo(Capnproto_test.Capnp.Test.ITestCallOrder cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_Echo.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_Echo.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_Echo()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_Echo()
|
||||||
{Cap = Cap};
|
{Cap = cap};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(15980754968839795663UL, 6, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(15980754968839795663UL, 6, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -12213,11 +12238,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task ExpectCancel(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default)
|
public async Task ExpectCancel(Capnproto_test.Capnp.Test.ITestInterface cap, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_ExpectCancel.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_ExpectCancel.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_ExpectCancel()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_ExpectCancel()
|
||||||
{Cap = Cap};
|
{Cap = cap};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 7, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 7, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12226,11 +12251,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<(string, string)> MethodWithDefaults(string A, uint B, string C, CancellationToken cancellationToken_ = default)
|
public async Task<(string, string)> MethodWithDefaults(string a, uint b, string c, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithDefaults.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithDefaults.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithDefaults()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithDefaults()
|
||||||
{A = A, B = B, C = C};
|
{A = a, B = b, C = c};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 8, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 8, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12288,11 +12313,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task MethodWithNullDefault(string A, Capnproto_test.Capnp.Test.ITestInterface B, CancellationToken cancellationToken_ = default)
|
public async Task MethodWithNullDefault(string a, Capnproto_test.Capnp.Test.ITestInterface b, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithNullDefault.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithNullDefault.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithNullDefault()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMoreStuff.Params_MethodWithNullDefault()
|
||||||
{A = A, B = B};
|
{A = a, B = b};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15980754968839795663UL, 12, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15980754968839795663UL, 12, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12301,11 +12326,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<uint> GetCallSequence(uint Expected, CancellationToken cancellationToken_ = default)
|
public async Task<uint> GetCallSequence(uint expected, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence()
|
var arg_ = new Capnproto_test.Capnp.Test.TestCallOrder.Params_GetCallSequence()
|
||||||
{Expected = Expected};
|
{Expected = expected};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(11594359141811814481UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(11594359141811814481UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -12315,6 +12340,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc70bf9784133cfUL)]
|
||||||
public class TestMoreStuff_Skeleton : Skeleton<ITestMoreStuff>
|
public class TestMoreStuff_Skeleton : Skeleton<ITestMoreStuff>
|
||||||
{
|
{
|
||||||
public TestMoreStuff_Skeleton()
|
public TestMoreStuff_Skeleton()
|
||||||
@ -14032,12 +14058,13 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
public interface ITestMembrane : IDisposable
|
public interface ITestMembrane : IDisposable
|
||||||
{
|
{
|
||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> MakeThing(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> MakeThing(CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallPassThrough(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, bool TailCall, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallPassThrough(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, bool tailCall, CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallIntercept(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, bool TailCall, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallIntercept(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, bool tailCall, CancellationToken cancellationToken_ = default);
|
||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> Loopback(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> Loopback(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, CancellationToken cancellationToken_ = default);
|
||||||
Task WaitForever(CancellationToken cancellationToken_ = default);
|
Task WaitForever(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc07d8dcd80a69c0cUL)]
|
||||||
public class TestMembrane_Proxy : Proxy, ITestMembrane
|
public class TestMembrane_Proxy : Proxy, ITestMembrane
|
||||||
{
|
{
|
||||||
public Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> MakeThing(CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> MakeThing(CancellationToken cancellationToken_ = default)
|
||||||
@ -14058,11 +14085,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallPassThrough(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, bool TailCall, CancellationToken cancellationToken_ = default)
|
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallPassThrough(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, bool tailCall, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_CallPassThrough.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_CallPassThrough.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_CallPassThrough()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_CallPassThrough()
|
||||||
{Thing = Thing, TailCall = TailCall};
|
{Thing = thing, TailCall = tailCall};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(13870398341137210380UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(13870398341137210380UL, 1, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -14071,11 +14098,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallIntercept(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, bool TailCall, CancellationToken cancellationToken_ = default)
|
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> CallIntercept(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, bool tailCall, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_CallIntercept.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_CallIntercept.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_CallIntercept()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_CallIntercept()
|
||||||
{Thing = Thing, TailCall = TailCall};
|
{Thing = thing, TailCall = tailCall};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(13870398341137210380UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(13870398341137210380UL, 2, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -14084,11 +14111,11 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> Loopback(Capnproto_test.Capnp.Test.TestMembrane.IThing Thing, CancellationToken cancellationToken_ = default)
|
public Task<Capnproto_test.Capnp.Test.TestMembrane.IThing> Loopback(Capnproto_test.Capnp.Test.TestMembrane.IThing thing, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_Loopback.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestMembrane.Params_Loopback.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_Loopback()
|
var arg_ = new Capnproto_test.Capnp.Test.TestMembrane.Params_Loopback()
|
||||||
{Thing = Thing};
|
{Thing = thing};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
return Impatient.MakePipelineAware(Call(13870398341137210380UL, 3, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
return Impatient.MakePipelineAware(Call(13870398341137210380UL, 3, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_), d_ =>
|
||||||
{
|
{
|
||||||
@ -14116,6 +14143,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc07d8dcd80a69c0cUL)]
|
||||||
public class TestMembrane_Skeleton : Skeleton<ITestMembrane>
|
public class TestMembrane_Skeleton : Skeleton<ITestMembrane>
|
||||||
{
|
{
|
||||||
public TestMembrane_Skeleton()
|
public TestMembrane_Skeleton()
|
||||||
@ -14209,6 +14237,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> Intercept(CancellationToken cancellationToken_ = default);
|
Task<Capnproto_test.Capnp.Test.TestMembrane.Result> Intercept(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9352e4e41f173917UL)]
|
||||||
public class Thing_Proxy : Proxy, IThing
|
public class Thing_Proxy : Proxy, IThing
|
||||||
{
|
{
|
||||||
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> PassThrough(CancellationToken cancellationToken_ = default)
|
public async Task<Capnproto_test.Capnp.Test.TestMembrane.Result> PassThrough(CancellationToken cancellationToken_ = default)
|
||||||
@ -14238,6 +14267,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9352e4e41f173917UL)]
|
||||||
public class Thing_Skeleton : Skeleton<IThing>
|
public class Thing_Skeleton : Skeleton<IThing>
|
||||||
{
|
{
|
||||||
public Thing_Skeleton()
|
public Thing_Skeleton()
|
||||||
@ -15115,6 +15145,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task Return(CancellationToken cancellationToken_ = default);
|
Task Return(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9ae342d394247cfcUL)]
|
||||||
public class TestKeywordMethods_Proxy : Proxy, ITestKeywordMethods
|
public class TestKeywordMethods_Proxy : Proxy, ITestKeywordMethods
|
||||||
{
|
{
|
||||||
public async Task Delete(CancellationToken cancellationToken_ = default)
|
public async Task Delete(CancellationToken cancellationToken_ = default)
|
||||||
@ -15170,6 +15201,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9ae342d394247cfcUL)]
|
||||||
public class TestKeywordMethods_Skeleton : Skeleton<ITestKeywordMethods>
|
public class TestKeywordMethods_Skeleton : Skeleton<ITestKeywordMethods>
|
||||||
{
|
{
|
||||||
public TestKeywordMethods_Skeleton()
|
public TestKeywordMethods_Skeleton()
|
||||||
@ -15588,6 +15620,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
Task<TVatId> GetCallerId(CancellationToken cancellationToken_ = default);
|
Task<TVatId> GetCallerId(CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xea72cc77253798cdUL)]
|
||||||
public class TestAuthenticatedBootstrap_Proxy<TVatId> : Proxy, ITestAuthenticatedBootstrap<TVatId> where TVatId : class
|
public class TestAuthenticatedBootstrap_Proxy<TVatId> : Proxy, ITestAuthenticatedBootstrap<TVatId> where TVatId : class
|
||||||
{
|
{
|
||||||
public Task<TVatId> GetCallerId(CancellationToken cancellationToken_ = default)
|
public Task<TVatId> GetCallerId(CancellationToken cancellationToken_ = default)
|
||||||
@ -15609,6 +15642,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xea72cc77253798cdUL)]
|
||||||
public class TestAuthenticatedBootstrap_Skeleton<TVatId> : Skeleton<ITestAuthenticatedBootstrap<TVatId>> where TVatId : class
|
public class TestAuthenticatedBootstrap_Skeleton<TVatId> : Skeleton<ITestAuthenticatedBootstrap<TVatId>> where TVatId : class
|
||||||
{
|
{
|
||||||
public TestAuthenticatedBootstrap_Skeleton()
|
public TestAuthenticatedBootstrap_Skeleton()
|
||||||
@ -16565,16 +16599,17 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd112a69d31ed918bUL), Proxy(typeof(TestNameAnnotationInterface_Proxy)), Skeleton(typeof(TestNameAnnotationInterface_Skeleton))]
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd112a69d31ed918bUL), Proxy(typeof(TestNameAnnotationInterface_Proxy)), Skeleton(typeof(TestNameAnnotationInterface_Skeleton))]
|
||||||
public interface ITestNameAnnotationInterface : IDisposable
|
public interface ITestNameAnnotationInterface : IDisposable
|
||||||
{
|
{
|
||||||
Task BadlyNamedMethod(byte BadlyNamedParam, CancellationToken cancellationToken_ = default);
|
Task BadlyNamedMethod(byte badlyNamedParam, CancellationToken cancellationToken_ = default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd112a69d31ed918bUL)]
|
||||||
public class TestNameAnnotationInterface_Proxy : Proxy, ITestNameAnnotationInterface
|
public class TestNameAnnotationInterface_Proxy : Proxy, ITestNameAnnotationInterface
|
||||||
{
|
{
|
||||||
public async Task BadlyNamedMethod(byte BadlyNamedParam, CancellationToken cancellationToken_ = default)
|
public async Task BadlyNamedMethod(byte badlyNamedParam, CancellationToken cancellationToken_ = default)
|
||||||
{
|
{
|
||||||
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestNameAnnotationInterface.Params_BadlyNamedMethod.WRITER>();
|
var in_ = SerializerState.CreateForRpc<Capnproto_test.Capnp.Test.TestNameAnnotationInterface.Params_BadlyNamedMethod.WRITER>();
|
||||||
var arg_ = new Capnproto_test.Capnp.Test.TestNameAnnotationInterface.Params_BadlyNamedMethod()
|
var arg_ = new Capnproto_test.Capnp.Test.TestNameAnnotationInterface.Params_BadlyNamedMethod()
|
||||||
{BadlyNamedParam = BadlyNamedParam};
|
{BadlyNamedParam = badlyNamedParam};
|
||||||
arg_?.serialize(in_);
|
arg_?.serialize(in_);
|
||||||
using (var d_ = await Call(15065286897585459595UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
using (var d_ = await Call(15065286897585459595UL, 0, in_.Rewrap<DynamicSerializerState>(), false, cancellationToken_).WhenReturned)
|
||||||
{
|
{
|
||||||
@ -16584,6 +16619,7 @@ namespace Capnproto_test.Capnp.Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd112a69d31ed918bUL)]
|
||||||
public class TestNameAnnotationInterface_Skeleton : Skeleton<ITestNameAnnotationInterface>
|
public class TestNameAnnotationInterface_Skeleton : Skeleton<ITestNameAnnotationInterface>
|
||||||
{
|
{
|
||||||
public TestNameAnnotationInterface_Skeleton()
|
public TestNameAnnotationInterface_Skeleton()
|
||||||
|
@ -47,7 +47,6 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
public Name ReaderContextField { get; }
|
public Name ReaderContextField { get; }
|
||||||
public Name ContextParameter { get; }
|
public Name ContextParameter { get; }
|
||||||
public Name GroupReaderContextArg { get; }
|
public Name GroupReaderContextArg { get; }
|
||||||
public Name GroupWriterContextArg { get; }
|
|
||||||
public Name UnionDiscriminatorEnum { get; }
|
public Name UnionDiscriminatorEnum { get; }
|
||||||
public Name UnionDiscriminatorProp { get; }
|
public Name UnionDiscriminatorProp { get; }
|
||||||
public Name UnionDiscriminatorUndefined { get; }
|
public Name UnionDiscriminatorUndefined { get; }
|
||||||
@ -61,14 +60,12 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
public Name ResultLocal { get; }
|
public Name ResultLocal { get; }
|
||||||
public Name SerializeMethod { get; }
|
public Name SerializeMethod { get; }
|
||||||
public Name ApplyDefaultsMethod { get; }
|
public Name ApplyDefaultsMethod { get; }
|
||||||
public Name InstLocalName { get; }
|
|
||||||
public string ParamsStructFormat { get; }
|
public string ParamsStructFormat { get; }
|
||||||
public string ResultStructFormat { get; }
|
public string ResultStructFormat { get; }
|
||||||
public string PropertyNamedLikeTypeRenameFormat { get; }
|
public string PropertyNamedLikeTypeRenameFormat { get; }
|
||||||
public string GenericTypeParameterFormat { get; }
|
public string GenericTypeParameterFormat { get; }
|
||||||
public string MemberAccessPathNameFormat { get; }
|
public string MemberAccessPathNameFormat { get; }
|
||||||
public Name TaskParameter { get; }
|
public Name TaskParameter { get; }
|
||||||
public Name EagerMethod { get; }
|
|
||||||
public Name TypeIdField { get; }
|
public Name TypeIdField { get; }
|
||||||
public string PipeliningExtensionsClassFormat { get; }
|
public string PipeliningExtensionsClassFormat { get; }
|
||||||
public string ProxyClassFormat { get; }
|
public string ProxyClassFormat { get; }
|
||||||
@ -91,7 +88,6 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
ReaderContextField = new Name(options.ReaderContextFieldName);
|
ReaderContextField = new Name(options.ReaderContextFieldName);
|
||||||
ContextParameter = new Name(options.ContextParameterName);
|
ContextParameter = new Name(options.ContextParameterName);
|
||||||
GroupReaderContextArg = new Name(options.GroupReaderContextArgName);
|
GroupReaderContextArg = new Name(options.GroupReaderContextArgName);
|
||||||
GroupWriterContextArg = new Name(options.GroupWriterContextArgName);
|
|
||||||
UnionDiscriminatorEnum = new Name(options.UnionDiscriminatorEnumName);
|
UnionDiscriminatorEnum = new Name(options.UnionDiscriminatorEnumName);
|
||||||
UnionDiscriminatorProp = new Name(options.UnionDiscriminatorPropName);
|
UnionDiscriminatorProp = new Name(options.UnionDiscriminatorPropName);
|
||||||
UnionDiscriminatorUndefined = new Name(options.UnionDiscriminatorUndefinedName);
|
UnionDiscriminatorUndefined = new Name(options.UnionDiscriminatorUndefinedName);
|
||||||
@ -105,14 +101,12 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
DeserializerLocal = new Name(options.DeserializerLocalName);
|
DeserializerLocal = new Name(options.DeserializerLocalName);
|
||||||
SerializerLocal = new Name(options.SerializerLocalName);
|
SerializerLocal = new Name(options.SerializerLocalName);
|
||||||
ResultLocal = new Name(options.ResultLocalName);
|
ResultLocal = new Name(options.ResultLocalName);
|
||||||
InstLocalName = new Name(options.InstLocalName);
|
|
||||||
ParamsStructFormat = options.ParamsStructFormat;
|
ParamsStructFormat = options.ParamsStructFormat;
|
||||||
ResultStructFormat = options.ResultStructFormat;
|
ResultStructFormat = options.ResultStructFormat;
|
||||||
PropertyNamedLikeTypeRenameFormat = options.PropertyNamedLikeTypeRenameFormat;
|
PropertyNamedLikeTypeRenameFormat = options.PropertyNamedLikeTypeRenameFormat;
|
||||||
GenericTypeParameterFormat = options.GenericTypeParameterFormat;
|
GenericTypeParameterFormat = options.GenericTypeParameterFormat;
|
||||||
MemberAccessPathNameFormat = options.MemberAccessPathNameFormat;
|
MemberAccessPathNameFormat = options.MemberAccessPathNameFormat;
|
||||||
TaskParameter = new Name(options.TaskParameterName);
|
TaskParameter = new Name(options.TaskParameterName);
|
||||||
EagerMethod = new Name(options.EagerMethodName);
|
|
||||||
TypeIdField = new Name(options.TypeIdFieldName);
|
TypeIdField = new Name(options.TypeIdFieldName);
|
||||||
PipeliningExtensionsClassFormat = options.PipeliningExtensionsClassFormat;
|
PipeliningExtensionsClassFormat = options.PipeliningExtensionsClassFormat;
|
||||||
ProxyClassFormat = options.ProxyClassFormat;
|
ProxyClassFormat = options.ProxyClassFormat;
|
||||||
@ -594,7 +588,7 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
}
|
}
|
||||||
|
|
||||||
string GetCodeIdentifierUpperCamel(Field field) => field.CsName ?? SyntaxHelpers.MakeUpperCamel(field.Name);
|
string GetCodeIdentifierUpperCamel(Field field) => field.CsName ?? SyntaxHelpers.MakeUpperCamel(field.Name);
|
||||||
string GetCodeIdentifierLowerCamel(Field field) => field.CsName ?? IdentifierRenamer.ToNonKeyword(SyntaxHelpers.MakeLowerCamel(field.Name));
|
public string GetCodeIdentifierLowerCamel(Field field) => field.CsName ?? IdentifierRenamer.ToNonKeyword(SyntaxHelpers.MakeLowerCamel(field.Name));
|
||||||
|
|
||||||
public Name GetCodeIdentifier(Field field)
|
public Name GetCodeIdentifier(Field field)
|
||||||
{
|
{
|
||||||
@ -605,13 +599,6 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
|
|
||||||
var def = field.DeclaringType;
|
var def = field.DeclaringType;
|
||||||
|
|
||||||
if (def == null)
|
|
||||||
{
|
|
||||||
// Method parameters are internally represented with the same class "Field".
|
|
||||||
// They do not have a declaring type. Anyway, they don't suffer from the field-name-equals-nested-type-name problem.
|
|
||||||
return new Name(GetCodeIdentifierLowerCamel(field));
|
|
||||||
}
|
|
||||||
|
|
||||||
var typeNames = new HashSet<Name>(def.NestedTypes.Select(t => MakeTypeName(t)));
|
var typeNames = new HashSet<Name>(def.NestedTypes.Select(t => MakeTypeName(t)));
|
||||||
typeNames.Add(MakeTypeName(def));
|
typeNames.Add(MakeTypeName(def));
|
||||||
|
|
||||||
@ -647,9 +634,6 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
|
|
||||||
public Name MakePipeliningSupportExtensionMethodName(IReadOnlyList<Field> path)
|
public Name MakePipeliningSupportExtensionMethodName(IReadOnlyList<Field> path)
|
||||||
{
|
{
|
||||||
if (path.Count == 1 && path[0].Offset == 0)
|
|
||||||
return EagerMethod;
|
|
||||||
else
|
|
||||||
return new Name(string.Join("_", path.Select(f => GetCodeIdentifier(f).ToString())));
|
return new Name(string.Join("_", path.Select(f => GetCodeIdentifier(f).ToString())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
public string ReaderContextFieldName { get; set; } = "ctx";
|
public string ReaderContextFieldName { get; set; } = "ctx";
|
||||||
public string ContextParameterName { get; set; } = "ctx";
|
public string ContextParameterName { get; set; } = "ctx";
|
||||||
public string GroupReaderContextArgName { get; set; } = "ctx";
|
public string GroupReaderContextArgName { get; set; } = "ctx";
|
||||||
public string GroupWriterContextArgName { get; set; } = "ctx";
|
|
||||||
public string UnionDiscriminatorEnumName { get; set; } = "WHICH";
|
public string UnionDiscriminatorEnumName { get; set; } = "WHICH";
|
||||||
public string UnionDiscriminatorPropName { get; set; } = "which";
|
public string UnionDiscriminatorPropName { get; set; } = "which";
|
||||||
public string UnionDiscriminatorFieldName { get; set; } = "_which";
|
public string UnionDiscriminatorFieldName { get; set; } = "_which";
|
||||||
@ -28,14 +27,12 @@
|
|||||||
public string ParamsStructFormat { get; set; } = "Params_{0}";
|
public string ParamsStructFormat { get; set; } = "Params_{0}";
|
||||||
public string ResultStructFormat { get; set; } = "Result_{0}";
|
public string ResultStructFormat { get; set; } = "Result_{0}";
|
||||||
public string PropertyNamedLikeTypeRenameFormat { get; set; } = "The{0}";
|
public string PropertyNamedLikeTypeRenameFormat { get; set; } = "The{0}";
|
||||||
public string InstLocalName { get; set; } = "inst";
|
|
||||||
public string GenericTypeParameterFormat { get; set; } = "T{0}";
|
public string GenericTypeParameterFormat { get; set; } = "T{0}";
|
||||||
public string PipeliningExtensionsClassFormat { get; set; } = "PipeliningSupportExtensions_{0}";
|
public string PipeliningExtensionsClassFormat { get; set; } = "PipeliningSupportExtensions_{0}";
|
||||||
public string ProxyClassFormat { get; set; } = "{0}_Proxy";
|
public string ProxyClassFormat { get; set; } = "{0}_Proxy";
|
||||||
public string SkeletonClassFormat { get; set; } = "{0}_Skeleton";
|
public string SkeletonClassFormat { get; set; } = "{0}_Skeleton";
|
||||||
public string MemberAccessPathNameFormat { get; set; } = "Path_{0}_{1}_{2}_{3}";
|
public string MemberAccessPathNameFormat { get; set; } = "Path_{0}_{1}_{2}_{3}";
|
||||||
public string TaskParameterName { get; set; } = "task";
|
public string TaskParameterName { get; set; } = "task";
|
||||||
public string EagerMethodName { get; set; } = "Eager";
|
|
||||||
public string TypeIdFieldName { get; set; } = "typeId";
|
public string TypeIdFieldName { get; set; } = "typeId";
|
||||||
public string AwaitProxyName { get; set; } = "AwaitProxy";
|
public string AwaitProxyName { get; set; } = "AwaitProxy";
|
||||||
public bool NullableEnableDefault { get; set; } = false;
|
public bool NullableEnableDefault { get; set; } = false;
|
||||||
|
@ -61,7 +61,7 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
{
|
{
|
||||||
foreach (var arg in method.Params)
|
foreach (var arg in method.Params)
|
||||||
{
|
{
|
||||||
list.Add(Parameter(_names.GetCodeIdentifier(arg).Identifier)
|
list.Add(Parameter(Identifier(_names.GetCodeIdentifierLowerCamel(arg)))
|
||||||
.WithType(_names.MakeTypeSyntax(arg.Type, method.DeclaringInterface, TypeUsage.DomainClass, Nullability.NullableRef)));
|
.WithType(_names.MakeTypeSyntax(arg.Type, method.DeclaringInterface, TypeUsage.DomainClass, Nullability.NullableRef)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -194,8 +194,8 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
|
|
||||||
yield return AssignmentExpression(
|
yield return AssignmentExpression(
|
||||||
SyntaxKind.SimpleAssignmentExpression,
|
SyntaxKind.SimpleAssignmentExpression,
|
||||||
_names.GetCodeIdentifier(field).IdentifierName,
|
_names.GetCodeIdentifier(methodParam).IdentifierName,
|
||||||
_names.GetCodeIdentifier(methodParam).IdentifierName);
|
IdentifierName(_names.GetCodeIdentifierLowerCamel(field)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,6 +284,7 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
public MemberDeclarationSyntax MakeProxy(TypeDefinition type)
|
public MemberDeclarationSyntax MakeProxy(TypeDefinition type)
|
||||||
{
|
{
|
||||||
var classDecl = ClassDeclaration(_names.MakeTypeName(type, NameUsage.Proxy).Identifier)
|
var classDecl = ClassDeclaration(_names.MakeTypeName(type, NameUsage.Proxy).Identifier)
|
||||||
|
.AddAttributeLists(_names.MakeTypeDecorationAttributes(type.Id))
|
||||||
.AddModifiers(Public)
|
.AddModifiers(Public)
|
||||||
.AddBaseListTypes(
|
.AddBaseListTypes(
|
||||||
SimpleBaseType(_names.Type<Capnp.Rpc.Proxy>(Nullability.NonNullable)),
|
SimpleBaseType(_names.Type<Capnp.Rpc.Proxy>(Nullability.NonNullable)),
|
||||||
@ -480,7 +481,7 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
yield return AssignmentExpression(
|
yield return AssignmentExpression(
|
||||||
SyntaxKind.SimpleAssignmentExpression,
|
SyntaxKind.SimpleAssignmentExpression,
|
||||||
_names.GetCodeIdentifier(arg).IdentifierName,
|
_names.GetCodeIdentifier(arg).IdentifierName,
|
||||||
IdentifierName(IdentifierRenamer.ToNonKeyword(arg.Name)));
|
IdentifierName(_names.GetCodeIdentifierLowerCamel(arg)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -650,7 +651,7 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
if (method.Results.Count == 1)
|
if (method.Results.Count == 1)
|
||||||
{
|
{
|
||||||
lambdaArg = SimpleLambdaExpression(
|
lambdaArg = SimpleLambdaExpression(
|
||||||
Parameter(Identifier(method.Results.Single().Name)),
|
Parameter(Identifier(_names.GetCodeIdentifierLowerCamel(method.Results.Single()))),
|
||||||
MakeMaybeTailCallLambdaBody(method));
|
MakeMaybeTailCallLambdaBody(method));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -662,7 +663,7 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
{
|
{
|
||||||
if (paramList.Count > 0)
|
if (paramList.Count > 0)
|
||||||
paramList.Add(Token(SyntaxKind.CommaToken));
|
paramList.Add(Token(SyntaxKind.CommaToken));
|
||||||
paramList.Add(Parameter(Identifier(arg.Name)));
|
paramList.Add(Parameter(Identifier(_names.GetCodeIdentifierLowerCamel(arg))));
|
||||||
}
|
}
|
||||||
lambdaArg = ParenthesizedLambdaExpression(
|
lambdaArg = ParenthesizedLambdaExpression(
|
||||||
ParameterList(
|
ParameterList(
|
||||||
@ -729,6 +730,7 @@ namespace CapnpC.CSharp.Generator.CodeGen
|
|||||||
{
|
{
|
||||||
var name = _names.MakeTypeName(type, NameUsage.Skeleton).Identifier;
|
var name = _names.MakeTypeName(type, NameUsage.Skeleton).Identifier;
|
||||||
var classDecl = ClassDeclaration(name)
|
var classDecl = ClassDeclaration(name)
|
||||||
|
.AddAttributeLists(_names.MakeTypeDecorationAttributes(type.Id))
|
||||||
.AddModifiers(Public)
|
.AddModifiers(Public)
|
||||||
.AddBaseListTypes(
|
.AddBaseListTypes(
|
||||||
SimpleBaseType(
|
SimpleBaseType(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user