mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-09-08 10:10:49 +00:00
Revisions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user