Interface ISliceProxy<TSelf>
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
TSelfThe 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
invokerIInvokerThe invocation pipeline of the proxy.
serviceAddressServiceAddress?The service address. null is equivalent to the default service address of the proxy type.
encodeOptionsSliceEncodeOptionsThe 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
pathstringThe path.
Returns
- TSelf
The new relative proxy.