Table of Contents

Interface IProtobufClient<TSelf>

Namespace
IceRpc.Protobuf
Assembly
IceRpc.Protobuf.dll

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

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

Type Parameters

TSelf

The client struct that implements this interface.

Inherited Members

Methods

Create(IInvoker, ServiceAddress?, ProtobufEncodeOptions?)

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

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

Parameters

invoker IInvoker

The invocation pipeline of the client.

serviceAddress ServiceAddress?

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

encodeOptions ProtobufEncodeOptions

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

Returns

TSelf

The new client.