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
targetAResolverThe target to receive the dispatching message.
channelIdDiagnosticIdThe id of the channel dispatching the message.
resultIdCommIdThe id of the result to be registered in the MarymoorStudios.Core.Rpc.CommTable.
methodIdMethodIdThe id of the method being dispatched.
contextSerializationContextSerialization context.
payloadReadOnlyRowBufferA serialized message to be materialized and dispatched.
Returns
Type Parameters
TMessageThe message type derived from ARpcMessage<TServer>
TServerThe 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
targetAResolverThe target to receive the dispatching message.
channelIdDiagnosticIdThe id of the channel dispatching the message.
resultIdCommIdThe id of the result to be registered in the MarymoorStudios.Core.Rpc.CommTable.
methodIdMethodIdThe id of the method being dispatched.
contextSerializationContextSerialization context.
payloadReadOnlyRowBufferA serialized message to be materialized and dispatched.
Returns
TryGet(AResolver, out EventualType)
public static bool TryGet(AResolver resolver, out EventualType retval)
Parameters
resolverAResolverretvalEventualType
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
targetAResolverThe target to receive the dispatching message.
methodIdMethodIdThe id of the method whose name is being looked up.
methodNamestringA diagnostic string describing the method.
Returns
- bool
True if successfully looked up, false otherwise.