mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-31 07:51:36 +00:00 
			
		
		
		
	ResourceTemplate 2.0
This commit is contained in:
		| @@ -67,7 +67,7 @@ namespace Esiur.Net.IIP | ||||
|         string link; | ||||
|         //ulong age; | ||||
|         //ulong[] ages; | ||||
|         object[] properties; | ||||
|         protected object[] properties; | ||||
|         internal List<DistributedResource> parents = new List<DistributedResource>(); | ||||
|         internal List<DistributedResource> children = new List<DistributedResource>(); | ||||
|  | ||||
| @@ -210,13 +210,16 @@ namespace Esiur.Net.IIP | ||||
|             return true; | ||||
|         } | ||||
|  | ||||
|         internal void _EmitEventByIndex(byte index, object args) | ||||
|  | ||||
|         protected internal virtual void _EmitEventByIndex(byte index, object args) | ||||
|         { | ||||
|             var et = Instance.Template.GetEventTemplateByIndex(index); | ||||
|             events[index]?.Invoke(this, args); | ||||
|             Instance.EmitResourceEvent(et.Name, args); | ||||
|         } | ||||
|  | ||||
|  | ||||
|  | ||||
|         public AsyncReply<object> _InvokeByNamedArguments(byte index, Structure namedArgs) | ||||
|         { | ||||
|             if (destroyed) | ||||
| @@ -332,7 +335,7 @@ namespace Esiur.Net.IIP | ||||
|         /// </summary> | ||||
|         /// <param name="index">Zero-based property index.</param> | ||||
|         /// <returns>Value</returns> | ||||
|         internal object _Get(byte index) | ||||
|         protected internal object _Get(byte index) | ||||
|         { | ||||
|             if (index >= properties.Length) | ||||
|                 return null; | ||||
| @@ -383,7 +386,7 @@ namespace Esiur.Net.IIP | ||||
|         /// <param name="index">Zero-based property index.</param> | ||||
|         /// <param name="value">Value</param> | ||||
|         /// <returns>Indicator when the property is set.</returns> | ||||
|         internal AsyncReply<object> _Set(byte index, object value) | ||||
|         protected internal AsyncReply<object> _Set(byte index, object value) | ||||
|         { | ||||
|             if (index >= properties.Length) | ||||
|                 return null; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user