Table of Contents

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 AResolver

The target to receive the dispatching message.

channelId DiagnosticId

The id of the channel dispatching the message.

resultId CommId

The id of the result to be registered in the MarymoorStudios.Core.Rpc.CommTable.

methodId MethodId

The id of the method being dispatched.

context SerializationContext

Serialization context.

payload ReadOnlyRowBuffer

A serialized message to be materialized and dispatched.

Returns

bool

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

genericType Type
templateType Type

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 AResolver

The target to receive the dispatching message.

channelId DiagnosticId

The id of the channel dispatching the message.

resultId CommId

The id of the result to be registered in the MarymoorStudios.Core.Rpc.CommTable.

methodId MethodId

The id of the method being dispatched.

context SerializationContext

Serialization context.

payload ReadOnlyRowBuffer

A serialized message to be materialized and dispatched.

Returns

bool

TryGet(AResolver, out EventualType)

public static bool TryGet(AResolver resolver, out EventualType retval)

Parameters

resolver AResolver
retval EventualType

Returns

bool

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 AResolver

The target to receive the dispatching message.

methodId MethodId

The id of the method whose name is being looked up.

methodName string

A diagnostic string describing the method.

Returns

bool

True if successfully looked up, false otherwise.