Interface MessageTypeRegistry.IGenericInvokable
Supports type-erased generic method invocation on a registered message type.
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public interface MessageTypeRegistry.IGenericInvokable
Remarks
Implement this interface to perform generic operations (such as subscribing with a type-erased callback) that require the concrete message type at runtime.
Methods
Invoke<T>(object)
Invokes a generic operation for the message type T.
Declaration
object Invoke<T>(object arg) where T : IMessage
Parameters
| Type | Name | Description |
|---|---|---|
| object | arg | An arbitrary argument passed to the invocation. |
Returns
| Type | Description |
|---|---|
| object | The result of the invocation, or |
Type Parameters
| Name | Description |
|---|---|
| T | The concrete IMessage type. |