mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-26 21:13:13 +00:00
Runtime types
This commit is contained in:
@ -149,6 +149,14 @@ public partial class MyService
|
||||
return new Random().NextDouble();
|
||||
}
|
||||
|
||||
|
||||
[Public] public AsyncReply<List<Map<int, string?>?>> AsyncHello()
|
||||
{
|
||||
var rt = new List<Map<int, string?>?>();
|
||||
rt.Add(new Map<int, string?>() { [1] = "SSSSS", [2] = null });
|
||||
return new AsyncReply<List<Map<int, string?>?>>(rt);
|
||||
}
|
||||
|
||||
[Public]
|
||||
public void Connection(object a1, int a2, DistributedConnection a3) =>
|
||||
Console.WriteLine($"VoidArgs {a1} {a2} {a3}");
|
||||
|
@ -106,6 +106,7 @@ namespace Test
|
||||
var opt = await remote.Optional(new { a1 = 22, a2 = 33, a4 = "What?" });
|
||||
Console.WriteLine(opt);
|
||||
|
||||
var hello = await remote.AsyncHello();
|
||||
|
||||
await remote.Void();
|
||||
await remote.Connection("ss", 33);
|
||||
|
Reference in New Issue
Block a user