Class AProxyRpcMessage<TMessage, TReturnProxy, TReturnServer, TServer>
- Namespace
- MarymoorStudios.Core.Rpc
- Assembly
- MarymoorStudios.Core.Rpc.dll
Abstract base class for all generated proxy-returning message types.
public abstract class AProxyRpcMessage<TMessage, TReturnProxy, TReturnServer, TServer> : ARpcMessage<TServer> where TMessage : AProxyRpcMessage<TMessage, TReturnProxy, TReturnServer, TServer> where TReturnProxy : Proxy<TReturnServer>, IProxy<TReturnProxy, TReturnServer> where TReturnServer : AServer<TReturnServer> where TServer : AServer<TServer>
Type Parameters
TMessage
The message type itself.
TReturnProxy
The type of the result.
TReturnServer
The type of the result abstract server base.
TServer
The abstract server base class generated from the eventual interface.
- Inheritance
-
ResolverTurn<TServer>ARpcMessage<TServer>AProxyRpcMessage<TMessage, TReturnProxy, TReturnServer, TServer>
- Inherited Members
Constructors
AProxyRpcMessage(MethodId)
protected AProxyRpcMessage(MethodId methodId)
Parameters
methodId
MethodId
Properties
Resolver
protected override AResolver Resolver { get; }
Property Value
Result
public TReturnProxy Result { get; }
Property Value
- TReturnProxy
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
ExceptionThe failed outcome.
OnSuccess(TServer)
Execute the success path when the outcome is a success.
protected override sealed void OnSuccess(TServer value)
Parameters
value
TServerThe successful outcome.
Run(TServer)
protected abstract TReturnProxy Run(TServer server)
Parameters
server
TServer
Returns
- TReturnProxy
SizeOf(SerializationContext)
protected override sealed int SizeOf(SerializationContext context)
Parameters
context
SerializationContext
Returns
Write(SerializationContext, ref RowBuffer)
protected override sealed void Write(SerializationContext context, ref RowBuffer buffer)
Parameters
context
SerializationContextbuffer
RowBuffer