Show / Hide Table of Contents

Class Connection

iSCPのコネクションを表すクラスです。

Inheritance
System.Object
Connection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: iSCP
Assembly: iSCP.dll
Syntax
public class Connection

Constructors

Connection(String, ITransportConfig, Action<Action<String>>, String, String, Int64, UInt32, UInt32, Boolean, Int64, Int64, EncodingName)

Declaration
public Connection(string address, ITransportConfig transportConfig, Action<Action<string>> tokenSource, string nodeId = "", string projectUuid = "", long connectTimeout = 10000L, uint pingTimeout = 1U, uint pingInterval = 10U, bool autoReconnect = true, long reconnectBaseInterval = 100L, long reconnectMaxInterval = 5000L, EncodingName encoding = EncodingName.Protobuf)
Parameters
Type Name Description
System.String address

接続先のアドレス。127.0.0.1:8080 形式。

ITransportConfig transportConfig

トランスポートの設定。

System.Action<System.Action<System.String>> tokenSource

トークンソース。iSCPコネクションを開くたびに、このメソッドをコールしトークンを取得します。

System.String nodeId

ノードID。

System.String projectUuid

プロジェクトID。

System.Int64 connectTimeout

コネクトのタイムアウト(ミリ秒)。

System.UInt32 pingTimeout

Pingタイムアウト(秒)。タイムアウトが発生した場合トランスポートを切断します。

System.UInt32 pingInterval

Ping間隔(秒)。

System.Boolean autoReconnect

自動で再接続するかどうか。

System.Int64 reconnectBaseInterval

自動で再接続する際の、リトライ間隔の初期値(ミリ秒)。再接続に失敗すると、間隔を倍にしながらリトライを繰り返します。

System.Int64 reconnectMaxInterval

自動で再接続する際の、リトライ間隔の最大値(ミリ秒)。

EncodingName encoding

エンコーディング名。

Fields

Address

アドレス。

Declaration
public readonly string Address
Field Value
Type Description
System.String

AutoReconnect

自動で再接続するかどうか。

Declaration
public readonly bool AutoReconnect
Field Value
Type Description
System.Boolean

Callbacks

コネクションで発生するイベントのコールバック。

Declaration
public IConnectionCallbacks Callbacks
Field Value
Type Description
IConnectionCallbacks

ConnectTimeout

コネクトのタイムアウト(ミリ秒)。

Declaration
public readonly long ConnectTimeout
Field Value
Type Description
System.Int64

DEFAULT_AUTO_RECONNECT

自動で再接続するかどうかのデフォルト値。

Declaration
public const bool DEFAULT_AUTO_RECONNECT = true
Field Value
Type Description
System.Boolean

DEFAULT_CLOSE_TIMEOUT

クローズのタイムアウトのデフォルト値(ミリ秒)。

Declaration
public const long DEFAULT_CLOSE_TIMEOUT = 10000L
Field Value
Type Description
System.Int64

DEFAULT_CONNECT_TIMEOUT

コネクトのタイムアウトのデフォルト値(ミリ秒)。

Declaration
public const long DEFAULT_CONNECT_TIMEOUT = 10000L
Field Value
Type Description
System.Int64

DEFAULT_E2E_CALL_TIMEOUT

E2Eコールのタイムアウトのデフォルト値(ミリ秒)。

Declaration
public const long DEFAULT_E2E_CALL_TIMEOUT = 10000L
Field Value
Type Description
System.Int64

DEFAULT_ENCODING

エンコーディング名のデフォルト値。

Declaration
public const EncodingName DEFAULT_ENCODING = EncodingName.Protobuf
Field Value
Type Description
EncodingName

DEFAULT_PING_INTERVAL

Pingを送信する間隔のデフォルト値(秒)。

Declaration
public const uint DEFAULT_PING_INTERVAL = 10U
Field Value
Type Description
System.UInt32

DEFAULT_PING_TIMEOUT

Pingタイムアウトのデフォルト値(秒)。

Declaration
public const uint DEFAULT_PING_TIMEOUT = 1U
Field Value
Type Description
System.UInt32

DEFAULT_RECONNECT_BASE_INTERVAL

自動で再接続する際の、リトライ間隔の初期値のデフォルト値(ミリ秒)。

Declaration
public const long DEFAULT_RECONNECT_BASE_INTERVAL = 100L
Field Value
Type Description
System.Int64

DEFAULT_RECONNECT_MAX_INTERVAL

自動で再接続する際の、リトライ間隔の最大値のデフォルト値(ミリ秒)。

Declaration
public const long DEFAULT_RECONNECT_MAX_INTERVAL = 5000L
Field Value
Type Description
System.Int64

DEFAULT_SEND_METADATA_TIMEOUT

メタデータ送信のタイムアウトのデフォルト値(ミリ秒)。

Declaration
public const long DEFAULT_SEND_METADATA_TIMEOUT = 10000L
Field Value
Type Description
System.Int64

E2ECallCallbacks

コネクションで発生するE2Eコールイベントのコールバック。

Declaration
public IConnectionE2ECallCallbacks E2ECallCallbacks
Field Value
Type Description
IConnectionE2ECallCallbacks

Encoding

エンコーディング名。

Declaration
public readonly EncodingName Encoding
Field Value
Type Description
EncodingName

NodeId

ノードID。

Declaration
public readonly string NodeId
Field Value
Type Description
System.String

PingInterval

pingを送信する間隔(秒)。

Declaration
public readonly uint PingInterval
Field Value
Type Description
System.UInt32

PingTimeout

pingを送信後、pongが返却されるまでのタイムアウト時間(秒)。

Declaration
public readonly uint PingTimeout
Field Value
Type Description
System.UInt32

ProjectUuid

プロジェクトID。

Declaration
public readonly string ProjectUuid
Field Value
Type Description
System.String

ReconnectBaseInterval

自動で再接続する際の、リトライ間隔の初期値(ミリ秒)。

Declaration
public readonly long ReconnectBaseInterval
Field Value
Type Description
System.Int64

ReconnectMaxInterval

自動で再接続する際の、リトライ間隔の最大値(ミリ秒)。

Declaration
public readonly long ReconnectMaxInterval
Field Value
Type Description
System.Int64

Tag

オブジェクトを識別するためのタグ。

Declaration
public int Tag
Field Value
Type Description
System.Int32

TransportConfig

トランスポート用のコンフィグ。

Declaration
public readonly ITransportConfig TransportConfig
Field Value
Type Description
ITransportConfig

Properties

IsConnecting

実際にコネクションが接続中かどうか。

Declaration
public bool IsConnecting { get; }
Property Value
Type Description
System.Boolean

IsOpen

接続処理中かどうか。

Declaration
public bool IsOpen { get; }
Property Value
Type Description
System.Boolean

IsReconnecting

再接続中かどうか。

Declaration
public bool IsReconnecting { get; }
Property Value
Type Description
System.Boolean

TokenSource

トークンソース。

Declaration
public Action<Action<string>> TokenSource { get; }
Property Value
Type Description
System.Action<System.Action<System.String>>

Methods

Close(Action<Exception>)

コネクションを閉じます。

オープン済みのストリームは全て閉じられます。

Declaration
public void Close(Action<Exception> completion = null)
Parameters
Type Name Description
System.Action<System.Exception> completion

処理完了時のコールバック。

CloseAsync()

コネクションを閉じます。

オープン済みのストリームは全て閉じられます。

Declaration
public async Task<Exception> CloseAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Exception>

Connect(Action<Exception>)

iSCPで接続します。

Declaration
public void Connect(Action<Exception> completion)
Parameters
Type Name Description
System.Action<System.Exception> completion

処理完了時のコールバック。

Connect(String, ITransportConfig, Action<Action<String>>, String, String, Int64, UInt32, UInt32, Boolean, Int64, Int64, EncodingName, IConnectionCallbacks, IConnectionE2ECallCallbacks, Action<Connection, Exception>)

接続を行います。

Declaration
public static void Connect(string address, ITransportConfig transportConfig, Action<Action<string>> tokenSource, string nodeId = "", string projectUuid = "", long connectTimeout = 10000L, uint pingTimeout = 1U, uint pingInterval = 10U, bool autoReconnect = true, long reconnectBaseInterval = 100L, long reconnectMaxInterval = 5000L, EncodingName encoding = EncodingName.Protobuf, IConnectionCallbacks callbacks = null, IConnectionE2ECallCallbacks e2ECallCallbacks = null, Action<Connection, Exception> completion = null)
Parameters
Type Name Description
System.String address

接続先のアドレス。127.0.0.1:8080 形式。

ITransportConfig transportConfig

トランスポートの設定。

System.Action<System.Action<System.String>> tokenSource

トークンソース。iSCPコネクションを開くたびに、このメソッドをコールしトークンを取得します。

System.String nodeId

ノードID。

System.String projectUuid

プロジェクトID。

System.Int64 connectTimeout

コネクトのタイムアウト(ミリ秒)。

System.UInt32 pingTimeout

Pingタイムアウト(秒)。タイムアウトが発生した場合トランスポートを切断します。

System.UInt32 pingInterval

Ping間隔(秒)。

System.Boolean autoReconnect

自動で再接続するかどうか。

System.Int64 reconnectBaseInterval

自動で再接続する際の、リトライ間隔の初期値(ミリ秒)。再接続に失敗すると、間隔を倍にしながらリトライを繰り返します。

System.Int64 reconnectMaxInterval

自動で再接続する際の、リトライ間隔の最大値(ミリ秒)。

EncodingName encoding

エンコーディング名。

IConnectionCallbacks callbacks

コネクションで発生するイベントをハンドリングするインターフェース。

IConnectionE2ECallCallbacks e2ECallCallbacks

コネクションで発生するE2Eコールイベントをハンドリングするインターフェース。

System.Action<Connection, System.Exception> completion

処理完了時のコールバック。

ConnectAsync()

iSCPで接続します。

Declaration
public async Task<Exception> ConnectAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Exception>

ConnectAsync(String, ITransportConfig, Action<Action<String>>, String, String, Int64, UInt32, UInt32, Boolean, Int64, Int64, EncodingName, IConnectionCallbacks, IConnectionE2ECallCallbacks)

接続を行います。

Declaration
public static async Task<(Connection, Exception)> ConnectAsync(string address, ITransportConfig transportConfig, Action<Action<string>> tokenSource, string nodeId = "", string projectUuid = "", long connectTimeout = 10000L, uint pingTimeout = 1U, uint pingInterval = 10U, bool autoReconnect = true, long reconnectBaseInterval = 100L, long reconnectMaxInterval = 5000L, EncodingName encoding = EncodingName.Protobuf, IConnectionCallbacks callbacks = null, IConnectionE2ECallCallbacks e2ECallCallbacks = null)
Parameters
Type Name Description
System.String address

接続先のアドレス。127.0.0.1:8080 形式。

ITransportConfig transportConfig

トランスポートの設定。

System.Action<System.Action<System.String>> tokenSource

トークンソース。iSCPコネクションを開くたびに、このメソッドをコールしトークンを取得します。

System.String nodeId

ノードID。

System.String projectUuid

プロジェクトID。

System.Int64 connectTimeout

コネクトのタイムアウト(ミリ秒)。

System.UInt32 pingTimeout

Pingタイムアウト(秒)。タイムアウトが発生した場合トランスポートを切断します。

System.UInt32 pingInterval

Ping間隔(秒)。

System.Boolean autoReconnect

自動で再接続するかどうか。

System.Int64 reconnectBaseInterval

自動で再接続する際の、リトライ間隔の初期値(ミリ秒)。再接続に失敗すると、間隔を倍にしながらリトライを繰り返します。

System.Int64 reconnectMaxInterval

自動で再接続する際の、リトライ間隔の最大値(ミリ秒)。

EncodingName encoding

エンコーディング名。

IConnectionCallbacks callbacks

コネクションで発生するイベントをハンドリングするインターフェース。

IConnectionE2ECallCallbacks e2ECallCallbacks

コネクションで発生するE2Eコールイベントをハンドリングするインターフェース。

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<Connection, System.Exception>>

Dispose()

Declaration
public void Dispose()

Finalize()

Declaration
protected void Finalize()

OpenDownstream(DownstreamFilter[], DataId[], QoS, Boolean, UInt16, Int64, Int64, Int64, Action<Downstream, Exception>)

ダウンストリームを開きます。

Declaration
public void OpenDownstream(DownstreamFilter[] downstreamFilters, DataId[] dataIds = null, QoS qos = QoS.Unreliable, bool omitEmptyChunk = false, ushort expiryInterval = 60, long ackInterval = 2000L, long openTimeout = 10000L, long closeTimeout = 10000L, Action<Downstream, Exception> completion = null)
Parameters
Type Name Description
DownstreamFilter[] downstreamFilters

ダウンストリームフィルタのリスト。

DataId[] dataIds

エイリアスを設定するデータIDのリスト。

QoS qos

QoS。現在は unreliable のみサポート。

System.Boolean omitEmptyChunk

空チャンク省略フラグ。trueの場合、DownstreamChunk内のDataPointGroupsが空の時、DownstreamChunkの送信を省略します。

System.UInt16 expiryInterval

有効期限(秒)。このストリームが異常切断された時点からの有効期限を表します。最小値の 0 は、異常切断されたと同時に有効期限切れとなることを表します。

System.Int64 ackInterval

Ack返却間隔(ミリ秒)。受信したメッセージに対するAckの返却間隔です。

System.Int64 openTimeout

オープンのタイムアウト(ミリ秒)。

System.Int64 closeTimeout

クローズのタイムアウト(ミリ秒)。

System.Action<Downstream, System.Exception> completion

処理完了時のコールバック。

OpenDownstreamAsync(DownstreamFilter[], DataId[], QoS, Boolean, UInt16, Int64, Int64, Int64)

ダウンストリームを開きます。

Declaration
public async Task<(Downstream, Exception)> OpenDownstreamAsync(DownstreamFilter[] downstreamFilters, DataId[] dataIds = null, QoS qos = QoS.Unreliable, bool omitEmptyChunk = false, ushort expiryInterval = 60, long ackInterval = 2000L, long openTimeout = 10000L, long closeTimeout = 10000L)
Parameters
Type Name Description
DownstreamFilter[] downstreamFilters

ダウンストリームフィルタのリスト。

DataId[] dataIds

エイリアスを設定するデータIDのリスト。

QoS qos

QoS。現在は unreliable のみサポート。

System.Boolean omitEmptyChunk

空チャンク省略フラグ。trueの場合、DownstreamChunk内のDataPointGroupsが空の時、DownstreamChunkの送信を省略します。

System.UInt16 expiryInterval

有効期限(秒)。このストリームが異常切断された時点からの有効期限を表します。最小値の 0 は、異常切断されたと同時に有効期限切れとなることを表します。

System.Int64 ackInterval

Ack返却間隔(ミリ秒)。受信したメッセージに対するAckの返却間隔です。

System.Int64 openTimeout

オープンのタイムアウト(ミリ秒)。

System.Int64 closeTimeout

クローズのタイムアウト(ミリ秒)。

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<Downstream, System.Exception>>

OpenUpstream(String, UInt16, UInt16, DataId[], QoS, Boolean, Nullable<FlushPolicy>, Int64, Int64, Action<Upstream, Exception>)

アップストリームを開きます。

Declaration
public void OpenUpstream(string sessionId, ushort ackInterval = 100, ushort expiryInterval = 60, DataId[] dataIds = null, QoS qos = QoS.Unreliable, bool persist = false, FlushPolicy? flushPolicy = null, long openTimeout = 10000L, long closeTimeout = 10000L, Action<Upstream, Exception> completion = null)
Parameters
Type Name Description
System.String sessionId

セッションID。

System.UInt16 ackInterval

Ack返却間隔(ミリ秒)。このストリームで送信されたデータに対する確認応答の間隔を表します。0 が設定された場合、ブローカーは1つの UpstreamChunk メッセージごとに 1つの UpstreamChunkAck メッセージを返却します。

System.UInt16 expiryInterval

有効期限(秒)。このストリームが異常切断された時点からの有効期限を表します。最小値の 0 は、異常切断されたと同時に有効期限切れとなることを表します。

DataId[] dataIds

送信予定のデータIDのリスト。送信されるデータのデータIDが dataIDs に含まれていなかった場合、自動的にそのデータIDが dataIDs に追加されます(そのため、dataIDs に空のリストが設定されていても問題ありません)。

QoS qos

QoS。現在は unreliable のみサポート。

System.Boolean persist

永続化するかどうか。

System.Nullable<FlushPolicy> flushPolicy

データポイントのフラッシュポリシー。

System.Int64 openTimeout

オープンのタイムアウト(ミリ秒)。

System.Int64 closeTimeout

クローズのタイムアウト(ミリ秒)。

System.Action<Upstream, System.Exception> completion

処理完了時のコールバック。

OpenUpstreamAsync(String, UInt16, UInt16, DataId[], QoS, Boolean, Nullable<FlushPolicy>, Int64, Int64)

アップストリームを開きます。

Declaration
public async Task<(Upstream, Exception)> OpenUpstreamAsync(string sessionId, ushort ackInterval = 100, ushort expiryInterval = 60, DataId[] dataIds = null, QoS qos = QoS.Unreliable, bool persist = false, FlushPolicy? flushPolicy = null, long openTimeout = 10000L, long closeTimeout = 10000L)
Parameters
Type Name Description
System.String sessionId

セッションID。

System.UInt16 ackInterval

Ack返却間隔(ミリ秒)。このストリームで送信されたデータに対する確認応答の間隔を表します。0 が設定された場合、ブローカーは1つの UpstreamChunk メッセージごとに 1つの UpstreamChunkAck メッセージを返却します。

System.UInt16 expiryInterval

有効期限(秒)。このストリームが異常切断された時点からの有効期限を表します。最小値の 0 は、異常切断されたと同時に有効期限切れとなることを表します。

DataId[] dataIds

送信予定のデータIDのリスト。送信されるデータのデータIDが dataIDs に含まれていなかった場合、自動的にそのデータIDが dataIDs に追加されます(そのため、dataIDs に空のリストが設定されていても問題ありません)。

QoS qos

QoS。現在は unreliable のみサポート。

System.Boolean persist

永続化するかどうか。

System.Nullable<FlushPolicy> flushPolicy

データポイントのフラッシュポリシー。

System.Int64 openTimeout

オープンのタイムアウト(ミリ秒)。

System.Int64 closeTimeout

クローズのタイムアウト(ミリ秒)。

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<Upstream, System.Exception>>

ReopenDownstream(Downstream, Action<Downstream, Exception>)

ストリーム設定を引き継いで別ストリームとして再度ダウンストリームを開きます。

Declaration
public void ReopenDownstream(Downstream downstream, Action<Downstream, Exception> completion = null)
Parameters
Type Name Description
Downstream downstream

既存のダウンストリーム。このダウンストリームの設定を引き継ぐ別のダウンストリームが開かれます。

System.Action<Downstream, System.Exception> completion

処理完了時のコールバック。

ReopenDownstreamAsync(Downstream)

ストリーム設定を引き継いで別ストリームとして再度ダウンストリームを開きます。

Declaration
public async Task<(Downstream, Exception)> ReopenDownstreamAsync(Downstream downstream)
Parameters
Type Name Description
Downstream downstream

既存のダウンストリーム。このダウンストリームの設定を引き継ぐ別のダウンストリームが開かれます。

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<Downstream, System.Exception>>

ReopenUpstream(Upstream, Boolean, Action<Upstream, Exception>)

ストリーム設定を引き継いで別ストリームとして再度アップストリームを開きます。

Declaration
public void ReopenUpstream(Upstream upstream, bool handoverDataPoints = true, Action<Upstream, Exception> completion = null)
Parameters
Type Name Description
Upstream upstream

既存のアップストリーム。このアップストリームの設定を引き継ぐ別のアップストリームが開かれます。

System.Boolean handoverDataPoints

未送信のデータポイントが存在すれば引き継ぐかどうか。

System.Action<Upstream, System.Exception> completion

処理完了時のコールバック。

ReopenUpstreamAsync(Upstream, Boolean)

ストリーム設定を引き継いで別ストリームとして再度アップストリームを開きます。

Declaration
public async Task<(Upstream, Exception)> ReopenUpstreamAsync(Upstream upstream, bool handoverDataPoints = true)
Parameters
Type Name Description
Upstream upstream

既存のアップストリーム。このアップストリームの設定を引き継ぐ別のアップストリームが開かれます。

System.Boolean handoverDataPoints

未送信のデータポイントが存在すれば引き継ぐかどうか。

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<Upstream, System.Exception>>

SendBaseTime(BaseTime, Boolean, Int64, Action<Exception>)

基準時刻を送信します。

Declaration
public void SendBaseTime(BaseTime baseTime, bool persist = false, long sendTimeout = 10000L, Action<Exception> completion = null)
Parameters
Type Name Description
BaseTime baseTime

基準時刻。

System.Boolean persist

永続化するかどうか。

System.Int64 sendTimeout

送信のタイムアウト(ミリ秒)。

System.Action<System.Exception> completion

処理完了時のコールバック。

SendBaseTimeAsync(BaseTime, Boolean, Int64)

基準時刻を送信します。

Declaration
public async Task<Exception> SendBaseTimeAsync(BaseTime baseTime, bool persist = false, long sendTimeout = 10000L)
Parameters
Type Name Description
BaseTime baseTime

基準時刻。

System.Boolean persist

永続化するかどうか。

System.Int64 sendTimeout

送信のタイムアウト(ミリ秒)。

Returns
Type Description
System.Threading.Tasks.Task<System.Exception>

SendCall(UpstreamCall, Int64, Action<Exception>)

E2Eコールを送信します。

Declaration
public string SendCall(UpstreamCall upstreamCall, long sendTimeout = 10000L, Action<Exception> completion = null)
Parameters
Type Name Description
UpstreamCall upstreamCall

E2Eコール。

System.Int64 sendTimeout

送信のタイムアウト(ミリ秒)。

System.Action<System.Exception> completion

処理完了時のコールバック。

Returns
Type Description
System.String

コールID。

SendCallAndWaitReplyCall(UpstreamCall, Int64, Int64, Action<Nullable<DownstreamReplyCall>, Exception>)

E2Eコールを送信し、リプライコールを受信します。

Declaration
public string SendCallAndWaitReplyCall(UpstreamCall upstreamCall, long sendTimeout = 10000L, long waitTimeout = 10000L, Action<DownstreamReplyCall?, Exception> completion = null)
Parameters
Type Name Description
UpstreamCall upstreamCall

E2Eコール。

System.Int64 sendTimeout

送信のタイムアウト(ミリ秒)。

System.Int64 waitTimeout

受信のタイムアウト(ミリ秒)。

System.Action<System.Nullable<DownstreamReplyCall>, System.Exception> completion

処理完了時のコールバック。

Returns
Type Description
System.String

コールID。

SendCallAndWaitReplyCallAsync(UpstreamCall, Int64, Int64)

E2Eコールを送信し、リプライコールを受信します。

Declaration
public async Task<(string, DownstreamReplyCall? , Exception)> SendCallAndWaitReplyCallAsync(UpstreamCall upstreamCall, long sendTimeout = 10000L, long waitTimeout = 10000L)
Parameters
Type Name Description
UpstreamCall upstreamCall

E2Eコール。

System.Int64 sendTimeout

送信のタイムアウト(ミリ秒)。

System.Int64 waitTimeout

受信のタイムアウト(ミリ秒)。

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<System.String, System.Nullable<DownstreamReplyCall>, System.Exception>>

(コールID, E2Eリプライコール, エラー)。

SendCallAsync(UpstreamCall, Int64)

E2Eコールを送信します。

Declaration
public async Task<(string, Exception)> SendCallAsync(UpstreamCall upstreamCall, long sendTimeout = 10000L)
Parameters
Type Name Description
UpstreamCall upstreamCall

E2Eコール。

System.Int64 sendTimeout

送信のタイムアウト(ミリ秒)。

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<System.String, System.Exception>>

(コールID, エラー)。

SendReplyCall(UpstreamReplyCall, Int64, Action<Exception>)

E2Eコールのリプライを送信します。

Declaration
public string SendReplyCall(UpstreamReplyCall upstreamReplyCall, long sendTimeout = 10000L, Action<Exception> completion = null)
Parameters
Type Name Description
UpstreamReplyCall upstreamReplyCall

E2Eリプライコール。

System.Int64 sendTimeout

送信のタイムアウト(ミリ秒)。

System.Action<System.Exception> completion

処理完了時のコールバック。

Returns
Type Description
System.String

コールID。

SendReplyCallAsync(UpstreamReplyCall, Int64)

E2Eコールのリプライを送信します。

Declaration
public async Task<(string, Exception)> SendReplyCallAsync(UpstreamReplyCall upstreamReplyCall, long sendTimeout = 10000L)
Parameters
Type Name Description
UpstreamReplyCall upstreamReplyCall

E2Eリプライコール。

System.Int64 sendTimeout

送信のタイムアウト(ミリ秒)。

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<System.String, System.Exception>>

(コールID, エラー)。

In This Article
Back to top Generated by DocFX