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

取得服務的Moniker。

(繼承來源 ServiceRpcDescriptor)
MultiplexingStream

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

(繼承來源 ServiceRpcDescriptor)
MultiplexingStreamOptions

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

(繼承來源 ServiceJsonRpcDescriptor)
Protocol

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

(繼承來源 ServiceJsonRpcDescriptor)
TraceSource

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

(繼承來源 ServiceRpcDescriptor)

方法

Clone()

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

ConstructLocalProxy<T>(T)

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

(繼承來源 ServiceJsonRpcDescriptor)
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 連線。

(繼承來源 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)

適用於