Class RpcTargetMetadata.EventMetadata
- Namespace
- StreamJsonRpc
- Assembly
- StreamJsonRpc.dll
Provides metadata describing an RPC event.
public class RpcTargetMetadata.EventMetadata
- Inheritance
-
RpcTargetMetadata.EventMetadata
- Inherited Members
Remarks
Use this class to access information about an event and its handler in scenarios where events are invoked via RPC mechanisms. The metadata includes the event's reflection information, the name of the RPC method to invoke, the expected delegate type for the handler, and a factory for creating handler delegates. This class is typically used in frameworks or infrastructure that dynamically manage event subscriptions and invocations.
Instances of this class are generally constructed internally and are not intended to be created directly by consumers.
Properties
CreateEventHandler
Gets a factory method that creates a delegate to handle the event.
public required RpcTargetMetadata.CreateEventHandlerDelegate CreateEventHandler { get; init; }
Property Value
Event
Gets the event for which this metadata is describing the handler.
public required EventInfo Event { get; init; }
Property Value
EventHandlerType
Gets the delegate type of the event handler.
public required Type EventHandlerType { get; init; }
Property Value
Name
Gets the name of the RPC method that this event will invoke when raised.
public required string Name { get; init; }