Table of Contents

Interface ISliceFeature

Namespace
IceRpc.Features
Assembly
IceRpc.Slice.dll

Represents a feature used to customize the encoding and decoding of request and response payloads.

public interface ISliceFeature

Properties

BaseProxy

Gets the base proxy used when decoding a service address into a proxy.

ISliceProxy? BaseProxy { get; }

Property Value

ISliceProxy

The base proxy.

EncodeOptions

Gets the options to use when encoding the payload of an outgoing response.

SliceEncodeOptions? EncodeOptions { get; }

Property Value

SliceEncodeOptions

The Slice encode options. null is equivalent to Default.

MaxCollectionAllocation

Gets the maximum collection allocation when decoding a payload, in bytes.

int MaxCollectionAllocation { get; }

Property Value

int

The maximum collection allocation.

MaxSegmentSize

Gets the maximum size of a Slice payload segment, in bytes. A Slice payload segment corresponds to the encoded arguments of an operation, the encoded return values of an operation, or a portion of a stream of variable-size elements.

int MaxSegmentSize { get; }

Property Value

int

The maximum size of a Slice payload segment, in bytes.