ServiceJsonRpcDescriptor<T> 类

定义

支持 JSON-RPC 的服务的 RPC 描述符。

generic <typename T>
 where T : classpublic ref class ServiceJsonRpcDescriptor : Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor
[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ServiceJsonRpcDescriptor<T> : Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor where T : class
[<System.Diagnostics.DebuggerDisplay("{DebuggerDisplay,nq}")>]
type ServiceJsonRpcDescriptor<'T (requires 'T : null)> = class
    inherit ServiceJsonRpcDescriptor
Public Class ServiceJsonRpcDescriptor(Of T)
Inherits ServiceJsonRpcDescriptor

类型参数

T

用于调用服务的 RPC 接口。

继承
属性

构造函数

ServiceJsonRpcDescriptor<T>(ServiceJsonRpcDescriptor<T>)

初始化 类的新实例 ServiceJsonRpcDescriptor<T> ,并根据模板实例初始化所有字段。

ServiceJsonRpcDescriptor<T>(ServiceMoniker, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters)

初始化 ServiceJsonRpcDescriptor<T> 类的新实例。

ServiceJsonRpcDescriptor<T>(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters)

初始化 ServiceJsonRpcDescriptor<T> 类的新实例。

属性

ClientInterface

获取客户端的“回调”RPC 目标应实现的接口类型。

(继承自 ServiceRpcDescriptor)
ExceptionStrategy

获取异常从服务到客户端的通信方式。 创建实例时JsonRpcExceptionStrategy这会在 属性上设置。

(继承自 ServiceJsonRpcDescriptor)
Formatter

获取服务使用的格式设置。

(继承自 ServiceJsonRpcDescriptor)
JoinableTaskFactory

JoinableTaskFactory获取可应用于构造的 RPC 连接的 。

(继承自 ServiceRpcDescriptor)
MessageDelimiter

获取可识别消息边界的机制。 在 中找到 ServiceJsonRpcDescriptor.MessageDelimiters一些预期值。

(继承自 ServiceJsonRpcDescriptor)
Moniker

获取服务的名称对象。

(继承自 ServiceRpcDescriptor)
MultiplexingStream

Nerdbank.Streams.MultiplexingStream获取可由构造的客户端或服务器使用的 。

(继承自 ServiceRpcDescriptor)
MultiplexingStreamOptions

获取在创建新 Nerdbank.Streams.MultiplexingStream 作为建立 RPC 连接的先决条件时要使用的选项。

(继承自 ServiceJsonRpcDescriptor)
Protocol

获取此实例支持的协议的非本地化名称。

(继承自 ServiceJsonRpcDescriptor)
TraceSource

TraceSource获取要用于已构造客户端或服务器的 。

(继承自 ServiceRpcDescriptor)

方法

Clone()

创建具有所有相同属性的此实例的副本。

ConstructLocalProxy<T>(T)

使用代理包装某些目标对象,该代理为调用方提供与使用 JsonRpc调用实际 RPC 对象的类似语义。

(继承自 ServiceJsonRpcDescriptor)
ConstructRpc(Object, IDuplexPipe)

通过 IDuplexPipe建立与给定对象的 RPC 连接,允许远程方在给定对象上本地调用方法。

(继承自 ServiceRpcDescriptor)
ConstructRpc<T>(IDuplexPipe)

通过给定 IDuplexPipe 创建 RPC 客户端代理,而不为远程方提供本地 RPC 目标以在本地调用方法。

(继承自 ServiceRpcDescriptor)
ConstructRpc<T>(Object, IDuplexPipe)

通过给定 IDuplexPipe 创建 RPC 客户端代理,并为远程方提供本地 RPC 目标,以便在本地调用方法。

(继承自 ServiceRpcDescriptor)
ConstructRpcConnection(IDuplexPipe)

通过 IDuplexPipe建立 RPC 连接。

(继承自 ServiceJsonRpcDescriptor)
CreateConnection(JsonRpc)

初始化 或 派生类型的新实例 ServiceJsonRpcDescriptor.JsonRpcConnection

(继承自 ServiceJsonRpcDescriptor)
CreateFormatter()

初始化 的新实例 IJsonRpcMessageFormatter ,以便在新服务器或客户端中使用。

(继承自 ServiceJsonRpcDescriptor)
CreateHandler(IDuplexPipe, IJsonRpcMessageFormatter)

初始化 的新实例 IJsonRpcMessageHandler ,以便在新服务器或客户端中使用。

(继承自 ServiceJsonRpcDescriptor)
CreateJsonRpc(IJsonRpcMessageHandler)

初始化 的新实例 JsonRpc ,以便在新服务器或客户端中使用。

(继承自 ServiceJsonRpcDescriptor)
Equals(Object)

支持 JSON-RPC 的服务的 RPC 描述符。

(继承自 ServiceJsonRpcDescriptor)
Equals(ServiceJsonRpcDescriptor)

支持 JSON-RPC 的服务的 RPC 描述符。

(继承自 ServiceJsonRpcDescriptor)
GetHashCode()

支持 JSON-RPC 的服务的 RPC 描述符。

(继承自 ServiceJsonRpcDescriptor)
WithExceptionStrategy(ExceptionProcessing)

返回一个 实例,该实例 ServiceJsonRpcDescriptor 类似于此实例,但 ExceptionStrategy 属性设置为新值。

(继承自 ServiceJsonRpcDescriptor)
WithJoinableTaskFactory(JoinableTaskFactory)

返回一个 实例,该实例 ServiceRpcDescriptor 类似于此实例,但 JoinableTaskFactory 属性设置为指定值。

(继承自 ServiceRpcDescriptor)
WithMultiplexingStream(MultiplexingStream)

返回一个 实例,该实例 ServiceRpcDescriptor 与此类似,但 MultiplexingStream 属性设置为指定值,并 Nerdbank.Streams.MultiplexingStream.Options 设置为 null

(继承自 ServiceJsonRpcDescriptor)
WithMultiplexingStream(MultiplexingStream+Options)

返回类似于此实例 ServiceJsonRpcDescriptor 的 实例,但 MultiplexingStreamOptions 属性设置为指定值的冻结副本。 Nerdbank.Streams.MultiplexingStream如果已设置 ,则会将其清除。

(继承自 ServiceJsonRpcDescriptor)
WithServiceMoniker(ServiceMoniker)

返回一个 实例,该实例 ServiceRpcDescriptor 类似于此实例,但 ServiceMoniker 属性设置为指定值。

(继承自 ServiceRpcDescriptor)
WithTraceSource(TraceSource)

返回一个 实例,该实例 ServiceRpcDescriptor 类似于此实例,但 TraceSource 属性设置为指定值。

(继承自 ServiceRpcDescriptor)

适用于