Table of Contents

Interface ISliceProxy<TSelf>

Namespace
IceRpc.Slice
Assembly
IceRpc.Slice.dll

Lets generic code construct a TSelf proxy, since an interface cannot declare a constructor.

public interface ISliceProxy<TSelf> : ISliceProxy where TSelf : struct, ISliceProxy<TSelf>

Type Parameters

TSelf

The proxy struct that implements this interface.

Inherited Members

Methods

Create(IInvoker, ServiceAddress?, SliceEncodeOptions?)

Creates a proxy from an invoker, a service address and encode options.

public static abstract TSelf Create(IInvoker invoker, ServiceAddress? serviceAddress, SliceEncodeOptions? encodeOptions)

Parameters

invoker IInvoker

The invocation pipeline of the proxy.

serviceAddress ServiceAddress?

The service address. null is equivalent to the default service address of the proxy type.

encodeOptions SliceEncodeOptions

The encode options, used to customize the encoding of request payloads.

Returns

TSelf

The new proxy.

FromPath(string)

Creates a relative proxy from a path.

public static abstract TSelf FromPath(string path)

Parameters

path string

The path.

Returns

TSelf

The new relative proxy.