Table of Contents

Class ADataRpcMessage<TMessage, TServer>

Namespace
MarymoorStudios.Core.Rpc
Assembly
MarymoorStudios.Core.Rpc.dll

Abstract base class for all generated void-returning message types.

public abstract class ADataRpcMessage<TMessage, TServer> : ARpcMessage<TServer> where TMessage : ADataRpcMessage<TMessage, TServer> where TServer : AServer<TServer>

Type Parameters

TMessage

The message type itself.

TServer

The abstract server base class generated from the eventual interface.

Inheritance
ResolverTurn<TServer>
ARpcMessage<TServer>
ADataRpcMessage<TMessage, TServer>
Derived
Inherited Members

Constructors

ADataRpcMessage(MethodId)

protected ADataRpcMessage(MethodId methodId)

Parameters

methodId MethodId

Properties

Resolver

protected override AResolver Resolver { get; }

Property Value

AResolver

Result

public Promise Result { get; }

Property Value

Promise

Methods

Break(Exception)

protected override sealed void Break(Exception ex)

Parameters

ex Exception

OnFailure(Exception)

Execute the error path when the outcome is a failure.

protected override sealed void OnFailure(Exception ex)

Parameters

ex Exception

The failed outcome.

OnSuccess(TServer)

Execute the success path when the outcome is a success.

protected override sealed void OnSuccess(TServer value)

Parameters

value TServer

The successful outcome.

Run(TServer)

protected abstract Promise Run(TServer server)

Parameters

server TServer

Returns

Promise

SizeOf(SerializationContext)

protected override sealed int SizeOf(SerializationContext context)

Parameters

context SerializationContext

Returns

int

Write(SerializationContext, ref RowBuffer)

protected override sealed void Write(SerializationContext context, ref RowBuffer buffer)

Parameters

context SerializationContext
buffer RowBuffer