Table of Contents

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

T

The 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

connection JsonRpc

The unstarted connection.

target T

The service implementation.

additionalInterfaces IReadOnlyList<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

context ServiceProxyContext

The context that supplies a leased target and boundary policy.

additionalInterfaces IReadOnlyList<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

context ServiceProxyContext

The activation and lifetime context.

additionalInterfaces IReadOnlyList<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

connection JsonRpc

The connection owned by the proxy.

additionalInterfaces IReadOnlyList<ServiceInterface>

The supported additional interfaces.

options ServiceActivationOptions

Activation options, including a callback target.

Returns

T

The generated service proxy.