Interface IJsonRpcDescriptor<T>
- Namespace
- Nerdbank.JsonRpc.BrokeredServices
- Assembly
- Nerdbank.JsonRpc.dll
Defines generated construction support for a service proxy.
public interface IJsonRpcDescriptor<T> : IJsonRpcDescriptor where T : class
Type Parameters
TThe primary service interface.
- Inherited Members
Methods
AddRpcTarget(JsonRpc, T, IReadOnlyList<ServiceInterface>)
Registers the typed service implementation and its supported optional contracts.
void AddRpcTarget(JsonRpc connection, T target, IReadOnlyList<ServiceInterface> additionalInterfaces)
Parameters
connectionJsonRpcThe unstarted connection.
targetTThe service implementation.
additionalInterfacesIReadOnlyList<ServiceInterface>The supported optional interfaces.
CreateLocalProxy(ServiceProxyContext, IReadOnlyList<ServiceInterface>)
Constructs a direct, generated service proxy with explicit ownership.
T CreateLocalProxy(ServiceProxyContext context, IReadOnlyList<ServiceInterface> additionalInterfaces)
Parameters
contextServiceProxyContextThe context that supplies a leased target and boundary policy.
additionalInterfacesIReadOnlyList<ServiceInterface>The supported additional interfaces.
Returns
- T
The generated forwarding proxy.
CreateLocalTarget(ServiceProxyContext, IReadOnlyList<ServiceInterface>)
Constructs a typed server-side forwarding target for asynchronous activation.
T CreateLocalTarget(ServiceProxyContext context, IReadOnlyList<ServiceInterface> additionalInterfaces)
Parameters
contextServiceProxyContextThe activation and lifetime context.
additionalInterfacesIReadOnlyList<ServiceInterface>The supported optional interfaces.
Returns
- T
The generated server target.
CreateProxy(JsonRpc, IReadOnlyList<ServiceInterface>, ServiceActivationOptions)
Constructs an RPC proxy before its connection is started.
T CreateProxy(JsonRpc connection, IReadOnlyList<ServiceInterface> additionalInterfaces, ServiceActivationOptions options = default)
Parameters
connectionJsonRpcThe connection owned by the proxy.
additionalInterfacesIReadOnlyList<ServiceInterface>The supported additional interfaces.
optionsServiceActivationOptionsActivation options, including a callback target.
Returns
- T
The generated service proxy.