Table of Contents

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

decoder SliceDecoder

The Slice decoder.

Returns

TProxy

The decoded proxy struct.

Type Parameters

TProxy

The 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.