Class RpcRequestSurrogateConverter
- Namespace
- Microsoft.AutoGen.RuntimeGateway.Grpc.Orleans.Surrogates
- Assembly
- Microsoft.AutoGen.RuntimeGateway.Grpc.dll
[RegisterConverter]
public sealed class RpcRequestSurrogateConverter : IConverter<RpcRequest, RpcRequestSurrogate>
- Inheritance
-
RpcRequestSurrogateConverter
- Implements
- Inherited Members
Methods
ConvertFromSurrogate(in RpcRequestSurrogate)
Converts a surrogate value to the value type.
public RpcRequest ConvertFromSurrogate(in RpcRequestSurrogate surrogate)
Parameters
surrogateRpcRequestSurrogateThe surrogate.
Returns
- RpcRequest
The value.
ConvertToSurrogate(in RpcRequest)
Converts a value to the value type.
public RpcRequestSurrogate ConvertToSurrogate(in RpcRequest value)
Parameters
valueRpcRequestThe value.
Returns
- RpcRequestSurrogate
The surrogate.