語言

ServiceJsonRpcDescriptor 類別

定義

支援 JSON-RPC 之服務的 RPC 描述元。

public ref class ServiceJsonRpcDescriptor : Microsoft::ServiceHub::Framework::ServiceRpcDescriptor, IEquatable<Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor ^>
[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ServiceJsonRpcDescriptor : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor, IEquatable<Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor>
[<System.Diagnostics.DebuggerDisplay("{DebuggerDisplay,nq}")>]
type ServiceJsonRpcDescriptor = class
    inherit ServiceRpcDescriptor
    interface IEquatable<ServiceJsonRpcDescriptor>
Public Class ServiceJsonRpcDescriptor
Inherits ServiceRpcDescriptor
Implements IEquatable(Of ServiceJsonRpcDescriptor)
繼承
ServiceJsonRpcDescriptor
衍生
屬性
實作

建構函式

名稱 Description
ServiceJsonRpcDescriptor(ServiceJsonRpcDescriptor)

初始化 類別的新實例, ServiceJsonRpcDescriptor 並根據範本實例初始化所有欄位。

ServiceJsonRpcDescriptor(ServiceMoniker, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters)

初始化 ServiceJsonRpcDescriptor 類別的新執行個體。

ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters)

初始化 類別的新實例 ServiceJsonRpcDescriptor ,不支持開啟其他數據流,但依賴基礎服務代理程式來提供數據流除外。

ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters, MultiplexingStream+Options)

初始化 類別的新實例 ServiceJsonRpcDescriptor ,並支援使用 MultiplexingStreamOptions開啟其他數據流。

屬性

名稱 Description
ClientInterface

取得用戶端的「回呼」RPC 目標預期實作的介面類型。

(繼承來源 ServiceRpcDescriptor)
ExceptionStrategy

取得例外狀況從服務與客戶端通訊的方式。 建立 實例時JsonRpc,ExceptionStrategy這會在 屬性上設定。

Formatter

取得服務所使用的格式設定。

JoinableTaskFactory

JoinableTaskFactory取得可套用至已建構 RPC 連線的 。

(繼承來源 ServiceRpcDescriptor)
MessageDelimiter

取得可以辨識訊息界限的機制。 在中找到 ServiceJsonRpcDescriptor.MessageDelimiters一些預期的值。

Moniker

取得服務的Moniker。

(繼承來源 ServiceRpcDescriptor)
MultiplexingStream

Nerdbank.Streams.MultiplexingStream取得可由建構客戶端或伺服器使用的 。

(繼承來源 ServiceRpcDescriptor)
MultiplexingStreamOptions

取得建立新的 Nerdbank.Streams.MultiplexingStream 時要使用的選項,作為建立 RPC 連線的必要條件。

Protocol

取得這個實例所支援的通訊協定非本地化名稱。

TraceSource

TraceSource取得要用於建構客戶端或伺服器的 。

(繼承來源 ServiceRpcDescriptor)

方法

名稱 Description
Clone()

建立具有所有相同屬性之這個實例的複本。

ConstructLocalProxy<T>(T)

使用 Proxy 包裝一些目標物件,讓呼叫端使用 JsonRpc呼叫實際 RPC 對象的類似語意。

ConstructRpc(Object, IDuplexPipe)

透過 建立與指定物件的 IDuplexPipeRPC 連線,讓遠端合作物件在指定的物件上本機叫用方法。

(繼承來源 ServiceRpcDescriptor)
ConstructRpc<T>(IDuplexPipe)

透過指定的 IDuplexPipe 建立 RPC 用戶端 Proxy,而不提供遠端合作物件在本機叫用方法的本機 RPC 目標。

(繼承來源 ServiceRpcDescriptor)
ConstructRpc<T>(Object, IDuplexPipe)

透過指定的 IDuplexPipe 建立 RPC 用戶端 Proxy,並提供遠端合作物件在本機叫用方法的本機 RPC 目標。

(繼承來源 ServiceRpcDescriptor)
ConstructRpcConnection(IDuplexPipe)

透過 IDuplexPipe建立 RPC 連線。

CreateConnection(JsonRpc)

初始化 或衍生型別的新實例 ServiceJsonRpcDescriptor.JsonRpcConnection 。

CreateFormatter()

初始化 的新實例 IJsonRpcMessageFormatter ,以用於新的伺服器或用戶端。

CreateHandler(IDuplexPipe, IJsonRpcMessageFormatter)

初始化 的新實例 IJsonRpcMessageHandler ,以用於新的伺服器或用戶端。

CreateJsonRpc(IJsonRpcMessageHandler)

初始化 的新實例 JsonRpc ,以用於新的伺服器或用戶端。

Equals(Object)

支援 JSON-RPC 之服務的 RPC 描述元。

Equals(ServiceJsonRpcDescriptor)

支援 JSON-RPC 之服務的 RPC 描述元。

GetHashCode()

支援 JSON-RPC 之服務的 RPC 描述元。

WithExceptionStrategy(ExceptionProcessing)

傳回的實例類似於這個實例 ServiceJsonRpcDescriptor ,但 ExceptionStrategy 屬性會設定為新的值。

WithJoinableTaskFactory(JoinableTaskFactory)

傳回的實例類似於這個實例 ServiceRpcDescriptor ,但 JoinableTaskFactory 屬性會設定為指定的值。

(繼承來源 ServiceRpcDescriptor)
WithMultiplexingStream(MultiplexingStream)

傳回 的實體類似於這個實體 ServiceRpcDescriptor ,但 MultiplexingStream 屬性會設定為指定的值,並 Nerdbank.Streams.MultiplexingStream.Options 設定為 null。

WithMultiplexingStream(MultiplexingStream+Options)

傳回的實例類似於這個實例 ServiceJsonRpcDescriptor ,但 MultiplexingStreamOptions 屬性會設定為指定值的凍結複本。 Nerdbank.Streams.MultiplexingStream如果已設定 ,則會清除它。

WithServiceMoniker(ServiceMoniker)

傳回的實例類似於這個實例 ServiceRpcDescriptor ,但 ServiceMoniker 屬性會設定為指定的值。

(繼承來源 ServiceRpcDescriptor)
WithTraceSource(TraceSource)

傳回的實例類似於這個實例 ServiceRpcDescriptor ,但 TraceSource 屬性會設定為指定的值。

(繼承來源 ServiceRpcDescriptor)

適用於