次の方法で共有


ServiceJsonRpcDescriptor.JsonRpcConnection Class

Definition

A ServiceRpcDescriptor.RpcConnection-derived type specifically for JsonRpc.

public: ref class ServiceJsonRpcDescriptor::JsonRpcConnection : Microsoft::ServiceHub::Framework::ServiceRpcDescriptor::RpcConnection
public class ServiceJsonRpcDescriptor.JsonRpcConnection : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor.RpcConnection
type ServiceJsonRpcDescriptor.JsonRpcConnection = class
    inherit ServiceRpcDescriptor.RpcConnection
Public Class ServiceJsonRpcDescriptor.JsonRpcConnection
Inherits ServiceRpcDescriptor.RpcConnection
Inheritance
ServiceJsonRpcDescriptor.JsonRpcConnection

Constructors

ServiceJsonRpcDescriptor.JsonRpcConnection(JsonRpc)

Initializes a new instance of the ServiceJsonRpcDescriptor.JsonRpcConnection class.

Properties

Completion

Gets a Task that completes when the underlying RPC connection has shutdown and any local RPC target objects have been disposed of, if applicable.

IsDisposed System.Object.IsDisposed
JsonRpc

Gets the underlying JsonRpc object.

LocalRpcProxyOptions

Gets or sets the options to pass to Attach<T>(JsonRpcProxyOptions) in the default implementation of ConstructRpcClient<T>().

LocalRpcTargetOptions

Gets or sets the options to pass to AddLocalRpcTarget(Object, JsonRpcTargetOptions) in the default implementation of AddLocalRpcTarget(Object).

TraceSource

Gets or sets the TraceSource that receives log messages regarding the RPC connection.

Methods

AddLocalRpcTarget(Object)

Adds a target object to receive RPC calls.

ConstructRpcClient(Type)

Produces a proxy that provides a strongly-typed API for invoking methods offered by the remote party.

(Inherited from ServiceRpcDescriptor.RpcConnection)
ConstructRpcClient<T>()

Produces a proxy that provides a strongly-typed API for invoking methods offered by the remote party.

Dispose()

Disconnects from the RPC pipe, and disposes of managed and native resources held by this instance.

StartListening()

Begins listening for incoming messages.

Applies to