Class EventualType
- Namespace
- MarymoorStudios.Core.Rpc
- Assembly
- MarymoorStudios.Core.Rpc.dll
public abstract class EventualType
- Inheritance
-
EventualType
- Inherited Members
Constructors
EventualType()
protected EventualType()
Methods
DispatchRpcMessage<TMessage, TServer>(AResolver, DiagnosticId, CommId, MethodId, SerializationContext, ref ReadOnlyRowBuffer)
Dispatches an incoming serialized message packet as an ARpcMessage<TServer>.
protected static bool DispatchRpcMessage<TMessage, TServer>(AResolver target, DiagnosticId channelId, CommId resultId, MethodId methodId, SerializationContext context, ref ReadOnlyRowBuffer payload) where TMessage : ARpcMessage<TServer> where TServer : AServer<TServer>
Parameters
target
AResolverThe target to receive the dispatching message.
channelId
DiagnosticIdThe id of the channel dispatching the message.
resultId
CommIdThe id of the result to be registered in the MarymoorStudios.Core.Rpc.CommTable.
methodId
MethodIdThe id of the method being dispatched.
context
SerializationContextSerialization context.
payload
ReadOnlyRowBufferA serialized message to be materialized and dispatched.
Returns
Type Parameters
TMessage
The message type derived from ARpcMessage<TServer>
TServer
The server type derived from AServer<TServer>
Register(Type, Type)
public static void Register(Type genericType, Type templateType)
Parameters
TryDispatch(AResolver, DiagnosticId, CommId, MethodId, SerializationContext, ref ReadOnlyRowBuffer)
Dispatches an incoming serialized message packet.
public abstract bool TryDispatch(AResolver target, DiagnosticId channelId, CommId resultId, MethodId methodId, SerializationContext context, ref ReadOnlyRowBuffer payload)
Parameters
target
AResolverThe target to receive the dispatching message.
channelId
DiagnosticIdThe id of the channel dispatching the message.
resultId
CommIdThe id of the result to be registered in the MarymoorStudios.Core.Rpc.CommTable.
methodId
MethodIdThe id of the method being dispatched.
context
SerializationContextSerialization context.
payload
ReadOnlyRowBufferA serialized message to be materialized and dispatched.
Returns
TryGet(AResolver, out EventualType)
public static bool TryGet(AResolver resolver, out EventualType retval)
Parameters
resolver
AResolverretval
EventualType
Returns
TryGetMethodName(AResolver, MethodId, out string)
Returns a diagnostic string describing the method matching methodId
.
public abstract bool TryGetMethodName(AResolver target, MethodId methodId, out string methodName)
Parameters
target
AResolverThe target to receive the dispatching message.
methodId
MethodIdThe id of the method whose name is being looked up.
methodName
stringA diagnostic string describing the method.
Returns
- bool
True if successfully looked up, false otherwise.