JsonRpc.Attach メソッド

定義

オーバーロード

名前 説明
Attach(Type)

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

Attach(Stream, Object)

JsonMessageFormatterを使用してシリアル化されたメッセージに関するHeaderDelimitedMessageHandlerを使用するJsonRpc クラスの新しいインスタンスを初期化し、すぐにリッスンを開始します。

Attach(ReadOnlySpan<Type>, JsonRpcProxyOptions)

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

Attach(Type, JsonRpcProxyOptions)

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

Attach(Stream, Stream, Object)

JsonMessageFormatterを使用してシリアル化されたメッセージに関するHeaderDelimitedMessageHandlerを使用するJsonRpc クラスの新しいインスタンスを初期化し、すぐにリッスンを開始します。

Attach<T>(IJsonRpcMessageHandler, JsonRpcProxyOptions)

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

Attach<T>(Stream, Stream)

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

Attach<T>(Stream)

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

Attach<T>()

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

Attach<T>(IJsonRpcMessageHandler)

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

Attach<T>(JsonRpcProxyOptions)

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

Attach(Type)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

public object Attach(Type interfaceType);
member this.Attach : Type -> obj
Public Function Attach (interfaceType As Type) As Object

パラメーター

interfaceType
Type

リモート エンドで使用できる関数を記述するインターフェイス。

返品

生成されたプロキシのインスタンス。

適用対象

Attach(Stream, Object)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

JsonMessageFormatterを使用してシリアル化されたメッセージに関するHeaderDelimitedMessageHandlerを使用するJsonRpc クラスの新しいインスタンスを初期化し、すぐにリッスンを開始します。

public static StreamJsonRpc.JsonRpc Attach(System.IO.Stream stream, object target = default);
public static StreamJsonRpc.JsonRpc Attach(System.IO.Stream stream, object? target = default);
static member Attach : System.IO.Stream * obj -> StreamJsonRpc.JsonRpc
Public Shared Function Attach (stream As Stream, Optional target As Object = Nothing) As JsonRpc

パラメーター

stream
Stream

RPC メッセージを送受信する双方向ストリーム。

target
Object

受信 RPC 要求が到着したときに呼び出す省略可能なターゲット オブジェクト。

返品

初期化され、リッスンしている JsonRpc オブジェクト。

適用対象

Attach(ReadOnlySpan<Type>, JsonRpcProxyOptions)

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

public object Attach(ReadOnlySpan<Type> interfaceTypes, StreamJsonRpc.JsonRpcProxyOptions? options);
member this.Attach : ReadOnlySpan<Type> * StreamJsonRpc.JsonRpcProxyOptions -> obj
Public Function Attach (interfaceTypes As ReadOnlySpan(Of Type), options As JsonRpcProxyOptions) As Object

パラメーター

interfaceTypes
ReadOnlySpan<Type>

リモート エンドで使用できる関数を記述するインターフェイス。

options
JsonRpcProxyOptions

クライアント プロキシのワイヤードアップ方法に関する一連のカスタマイズ。 null場合は、既定のオプションが使用されます。

返品

生成されたプロキシのインスタンス。

適用対象

Attach(Type, JsonRpcProxyOptions)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

public object Attach(Type interfaceType, StreamJsonRpc.JsonRpcProxyOptions? options);
public object Attach(Type interfaceType, StreamJsonRpc.JsonRpcProxyOptions options);
member this.Attach : Type * StreamJsonRpc.JsonRpcProxyOptions -> obj
Public Function Attach (interfaceType As Type, options As JsonRpcProxyOptions) As Object

パラメーター

interfaceType
Type

リモート エンドで使用できる関数を記述するインターフェイス。

options
JsonRpcProxyOptions

クライアント プロキシのワイヤードアップ方法に関する一連のカスタマイズ。 null場合は、既定のオプションが使用されます。

返品

生成されたプロキシのインスタンス。

適用対象

Attach(Stream, Stream, Object)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

JsonMessageFormatterを使用してシリアル化されたメッセージに関するHeaderDelimitedMessageHandlerを使用するJsonRpc クラスの新しいインスタンスを初期化し、すぐにリッスンを開始します。

public static StreamJsonRpc.JsonRpc Attach(System.IO.Stream sendingStream, System.IO.Stream receivingStream, object target = default);
public static StreamJsonRpc.JsonRpc Attach(System.IO.Stream? sendingStream, System.IO.Stream? receivingStream, object? target = default);
static member Attach : System.IO.Stream * System.IO.Stream * obj -> StreamJsonRpc.JsonRpc
Public Shared Function Attach (sendingStream As Stream, receivingStream As Stream, Optional target As Object = Nothing) As JsonRpc

パラメーター

sendingStream
Stream

メッセージの送信に使用されるストリーム。 null を指定できます。

receivingStream
Stream

メッセージの受信に使用されるストリーム。 null を指定できます。

target
Object

受信 RPC 要求が到着したときに呼び出す省略可能なターゲット オブジェクト。

返品

初期化され、リッスンしている JsonRpc オブジェクト。

適用対象

Attach<T>(IJsonRpcMessageHandler, JsonRpcProxyOptions)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

public static T Attach<T>(StreamJsonRpc.IJsonRpcMessageHandler handler, StreamJsonRpc.JsonRpcProxyOptions options) where T : class;
public static T Attach<T>(StreamJsonRpc.IJsonRpcMessageHandler handler, StreamJsonRpc.JsonRpcProxyOptions? options) where T : class;
static member Attach : StreamJsonRpc.IJsonRpcMessageHandler * StreamJsonRpc.JsonRpcProxyOptions -> 'T (requires 'T : null)
Public Shared Function Attach(Of T As Class) (handler As IJsonRpcMessageHandler, options As JsonRpcProxyOptions) As T

型パラメーター

T

リモート エンドで使用できる関数を記述するインターフェイス。

パラメーター

handler
IJsonRpcMessageHandler

使用するメッセージ ハンドラー。

options
JsonRpcProxyOptions

クライアント プロキシのワイヤードアップ方法に関する一連のカスタマイズ。 null場合は、既定のオプションが使用されます。

返品

T

生成されたプロキシのインスタンス。 Tの実装に加えて、IDisposableも実装し、接続を閉じるには破棄する必要があります。

適用対象

Attach<T>(Stream, Stream)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

public static T Attach<T>(System.IO.Stream sendingStream, System.IO.Stream receivingStream) where T : class;
public static T Attach<T>(System.IO.Stream? sendingStream, System.IO.Stream? receivingStream) where T : class;
static member Attach : System.IO.Stream * System.IO.Stream -> 'T (requires 'T : null)
Public Shared Function Attach(Of T As Class) (sendingStream As Stream, receivingStream As Stream) As T

型パラメーター

T

リモート エンドで使用できる関数を記述するインターフェイス。

パラメーター

sendingStream
Stream

メッセージの送信に使用されるストリーム。 null を指定できます。

receivingStream
Stream

メッセージの受信に使用されるストリーム。 null を指定できます。

返品

T

生成されたプロキシのインスタンス。 Tの実装に加えて、IDisposableも実装し、接続を閉じるには破棄する必要があります。

適用対象

Attach<T>(Stream)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

public static T Attach<T>(System.IO.Stream stream) where T : class;
static member Attach : System.IO.Stream -> 'T (requires 'T : null)
Public Shared Function Attach(Of T As Class) (stream As Stream) As T

型パラメーター

T

リモート エンドで使用できる関数を記述するインターフェイス。

パラメーター

stream
Stream

JSON-RPC メッセージの送受信に使用される双方向ストリーム。

返品

T

生成されたプロキシのインスタンス。 Tの実装に加えて、IDisposableも実装し、接続を閉じるには破棄する必要があります。

適用対象

Attach<T>()

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

public T Attach<T>() where T : class;
member this.Attach : unit -> 'T (requires 'T : null)
Public Function Attach(Of T As Class) () As T

型パラメーター

T

リモート エンドで使用できる関数を記述するインターフェイス。

返品

T

生成されたプロキシのインスタンス。

適用対象

Attach<T>(IJsonRpcMessageHandler)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

public static T Attach<T>(StreamJsonRpc.IJsonRpcMessageHandler handler) where T : class;
static member Attach : StreamJsonRpc.IJsonRpcMessageHandler -> 'T (requires 'T : null)
Public Shared Function Attach(Of T As Class) (handler As IJsonRpcMessageHandler) As T

型パラメーター

T

リモート エンドで使用できる関数を記述するインターフェイス。

パラメーター

handler
IJsonRpcMessageHandler

使用するメッセージ ハンドラー。

返品

T

生成されたプロキシのインスタンス。 Tの実装に加えて、IDisposableも実装し、接続を閉じるには破棄する必要があります。

適用対象

Attach<T>(JsonRpcProxyOptions)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

指定したサーバー インターフェイスに準拠する JSON-RPC クライアント プロキシを作成します。

public T Attach<T>(StreamJsonRpc.JsonRpcProxyOptions options) where T : class;
public T Attach<T>(StreamJsonRpc.JsonRpcProxyOptions? options) where T : class;
member this.Attach : StreamJsonRpc.JsonRpcProxyOptions -> 'T (requires 'T : null)
Public Function Attach(Of T As Class) (options As JsonRpcProxyOptions) As T

型パラメーター

T

リモート エンドで使用できる関数を記述するインターフェイス。

パラメーター

options
JsonRpcProxyOptions

クライアント プロキシのワイヤードアップ方法に関する一連のカスタマイズ。 null場合は、既定のオプションが使用されます。

返品

T

生成されたプロキシのインスタンス。

適用対象