Class ABytesRpcMessage<TMessage, TServer>
- Namespace
- MarymoorStudios.Core.Rpc
- Assembly
- MarymoorStudios.Core.Rpc.dll
Abstract base class for all generated data-returning message types.
public abstract class ABytesRpcMessage<TMessage, TServer> : ARpcMessage<TServer> where TMessage : ABytesRpcMessage<TMessage, TServer> where TServer : AServer<TServer>
Type Parameters
TMessageThe message type itself.
TServerThe abstract server base class generated from the eventual interface.
- Inheritance
-
ResolverTurn<TServer>ARpcMessage<TServer>ABytesRpcMessage<TMessage, TServer>
- Inherited Members
Constructors
ABytesRpcMessage(MethodId)
protected ABytesRpcMessage(MethodId methodId)
Parameters
methodIdMethodId
Properties
Resolver
protected override AResolver Resolver { get; }
Property Value
Result
public Bytes Result { get; }
Property Value
Methods
Break(Exception)
protected override sealed void Break(Exception ex)
Parameters
exException
OnFailure(Exception)
Execute the error path when the outcome is a failure.
protected override sealed void OnFailure(Exception ex)
Parameters
exExceptionThe failed outcome.
OnSuccess(TServer)
Execute the success path when the outcome is a success.
protected override sealed void OnSuccess(TServer value)
Parameters
valueTServerThe successful outcome.
Run(TServer)
protected abstract Bytes Run(TServer server)
Parameters
serverTServer
Returns
SizeOf(SerializationContext)
protected override sealed int SizeOf(SerializationContext context)
Parameters
contextSerializationContext
Returns
Write(SerializationContext, ref RowBuffer)
protected override sealed void Write(SerializationContext context, ref RowBuffer buffer)
Parameters
contextSerializationContextbufferRowBuffer