Interface IProtobufClient<TSelf>
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
TSelfThe 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
invokerIInvokerThe invocation pipeline of the client.
serviceAddressServiceAddress?The service address. null is equivalent to the default service address of the client type.
encodeOptionsProtobufEncodeOptionsThe encode options, used to customize the encoding of request payloads.
Returns
- TSelf
The new client.