mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-31 07:51:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			668 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			668 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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);
 | |
| }
 | |
| 
 | |
| }
 | |
| }
 |