Class SliceProxySliceDecoderExtensions
- Namespace
- IceRpc.Slice.Operations
- Assembly
- IceRpc.Slice.dll
Provides extension methods for SliceDecoder to decode proxies.
public static class SliceProxySliceDecoderExtensions
- Inheritance
-
SliceProxySliceDecoderExtensions
- Inherited Members
Methods
DecodeProxy<TProxy>(ref SliceDecoder)
Decodes a proxy struct.
public static TProxy DecodeProxy<TProxy>(this ref SliceDecoder decoder) where TProxy : struct, ISliceProxy<TProxy>
Parameters
decoderSliceDecoderThe Slice decoder.
Returns
- TProxy
The decoded proxy struct.
Type Parameters
TProxyThe type of the proxy struct to decode.
Remarks
The decoding context of the decoder, when not null, is the base proxy: the decoded proxy inherits the invoker and encode options of this base proxy, and when the original proxy was a relative proxy, the service address of the decoded proxy is the service address of the base proxy with the path of the original proxy. Without a decoding context, the decoded proxy has Instance as its invoker, and it is a relative proxy when the original proxy was a relative proxy.