mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 05:23:13 +00:00
2.2
This commit is contained in:
23
Test.Client/localhost/Test.MyChildResource.Generated.cs
Normal file
23
Test.Client/localhost/Test.MyChildResource.Generated.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using Esiur.Resource;
|
||||
using Esiur.Core;
|
||||
using Esiur.Data;
|
||||
using Esiur.Net.IIP;
|
||||
namespace Test {
|
||||
public class MyChildResource : Test.MyResource {
|
||||
public MyChildResource(DistributedConnection connection, uint instanceId, ulong age, string link) : base(connection, instanceId, age, link) {}
|
||||
public MyChildResource() {}
|
||||
public AsyncReply<int> ChildMethod(string childName) {
|
||||
var rt = new AsyncReply<int>();
|
||||
_InvokeByArrayArguments(0, new object[] { childName })
|
||||
.Then(x => rt.Trigger((int)x))
|
||||
.Error(x => rt.TriggerError(x))
|
||||
.Chunk(x => rt.TriggerChunk(x));
|
||||
return rt; }
|
||||
public string ChildName {
|
||||
get => (string)properties[0];
|
||||
set => _Set(0, value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user