Revisions

This commit is contained in:
2026-08-09 03:54:28 +03:00
parent 2028db671f
commit 3b55d8d2f8
37 changed files with 1743 additions and 230 deletions
+25
View File
@@ -1,5 +1,6 @@
using Esiur.Core;
using Esiur.Data.Types;
using Esiur.Protocol;
using System;
using System.Collections.Generic;
using System.Text;
@@ -17,4 +18,28 @@ namespace Esiur.Data
public TypeDef ResourceDefinition { get; }
}
/// <summary>
/// Optional server-side invocation hook for local resources whose type
/// definition is assembled at runtime. Remote <see cref="EpResource"/>
/// proxies remain unchanged; this hook gives their local counterpart the
/// same dynamic function semantics.
/// </summary>
public interface IDynamicResourceFunctionHandler
{
public AsyncReply InvokeResourceFunctionAsync(
byte index,
object arguments,
InvocationContext context);
}
public delegate void DynamicResourceEventHandler(byte index, object value);
/// <summary>
/// Optional event bridge for a local runtime-defined resource.
/// </summary>
public interface IDynamicResourceEventSource
{
public event DynamicResourceEventHandler ResourceEventOccurred;
}
}