点击或拖拽改变大小

CommunicationPipe 方法

CommunicationPipe 类型公开以下成员。

方法
  名称说明
受保护的方法CheckMessageComplete
根据给定的消息,发送的数据,接收到数据来判断是否接收完成报文
公共方法CloseCommunication
关闭当前的管道信息,返回是否关闭成功的结果对象
公共方法CloseCommunicationAsync
公共方法Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
受保护的方法Dispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
公共方法Equals
Determines whether the specified object is equal to the current object.
(继承自 Object。)
受保护的方法Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
公共方法GetHashCode
Serves as the default hash function.
(继承自 Object。)
公共方法GetType
Gets the Type of the current instance.
(继承自 Object。)
受保护的方法IncrConnectErrorCount
自增当前的连续错误计数,并且获取自增后的值信息,最大到10亿为止,无法继续增加了。
公共方法IsConnectError
当前的管道连接对象是否发生了错误
受保护的方法MemberwiseClone
Creates a shallow copy of the current Object.
(继承自 Object。)
公共方法OpenCommunication
打开当前的管道信息,返回是否成功打开的结果对象,并通过属性 Content 指示当前是否为新创建的连接对象,如果是,则该值为 true
公共方法OpenCommunicationAsync
打开当前的管道信息,返回是否成功打开的结果对象,并通过属性 Content 指示当前是否为新创建的连接对象,如果是,则该值为 true
公共方法RaisePipeError
主动引发一个管道错误,从而让管道可以重新打开
公共方法ReadFromCoreServer
将数据发送到当前的管道里,并从管道接收相关的数据信息,可以指定消息类型,发送数据,是否有数据响应,休眠时间
To send data to the current pipeline and receive relevant data information from the pipeline, you can specify the message type, the data sent, whether there is a data response, and the sleep time
公共方法ReadFromCoreServerAsync
将数据发送到当前的管道里,并从管道接收相关的数据信息,可以指定消息类型,发送数据,是否有数据响应,休眠时间
To send data to the current pipeline and receive relevant data information from the pipeline, you can specify the message type, the data sent, whether there is a data response, and the sleep time
受保护的方法ReadFromCoreServerHelper
将数据发送到当前的管道里,并从管道接收相关的数据信息,可以指定消息类型,发送数据,是否有数据响应,休眠时间
To send data to the current pipeline and receive relevant data information from the pipeline, you can specify the message type, the data sent, whether there is a data response, and the sleep time
受保护的方法ReadFromCoreServerHelperAsync
将数据发送到当前的管道里,并从管道接收相关的数据信息,可以指定消息类型,发送数据,是否有数据响应,休眠时间
To send data to the current pipeline and receive relevant data information from the pipeline, you can specify the message type, the data sent, whether there is a data response, and the sleep time
公共方法Receive(Int32, Int32, ActionInt64, Int64)
从管道里,接收指定长度的报文数据信息,如果长度指定为-1,表示接收不超过2048字节的动态长度。另外可以指定超时时间,进度报告等
Receives the packet data of a specified length from the pipe. If the length is set to -1, it indicates that the dynamic length of the packet is not more than 2048 bytes. You can also specify timeouts, progress reports, etc
公共方法Receive(Byte, Int32, Int32, Int32, ActionInt64, Int64)
接收固定长度的字节数组,允许指定超时时间,默认为60秒,当length大于0时,接收固定长度的数据内容,当length小于0时,buffer长度的缓存数据
Receiving a fixed-length byte array, allowing a specified timeout time. The default is 60 seconds. When length is greater than 0, fixed-length data content is received. When length is less than 0, random data information of a length not greater than 2048 is received.
公共方法ReceiveAsync(Int32, Int32, ActionInt64, Int64)
从管道里,接收指定长度的报文数据信息,如果长度指定为-1,表示接收不超过2048字节的动态长度。另外可以指定超时时间,进度报告等
Receives the packet data of a specified length from the pipe. If the length is set to -1, it indicates that the dynamic length of the packet is not more than 2048 bytes. You can also specify timeouts, progress reports, etc
公共方法ReceiveAsync(Byte, Int32, Int32, Int32, ActionInt64, Int64)
接收固定长度的字节数组,允许指定超时时间,默认为60秒,当length大于0时,接收固定长度的数据内容,当length小于0时,buffer长度的缓存数据
Receiving a fixed-length byte array, allowing a specified timeout time. The default is 60 seconds. When length is greater than 0, fixed-length data content is received. When length is less than 0, random data information of a length not greater than 2048 is received.
公共方法ReceiveMessage
包含了一个复杂的逻辑,从管道里根据当前的消息格式定义,接收报文信息,这个报文可能是来自服务器主动推送的。具体可以通过参数 useActivePush 来特殊控制。
Contains a complex logic from the pipeline, according to the current message format definition, to receive message information, this message may be actively pushed from the server. The parameter useActivePush can be used for special control.
公共方法ReceiveMessageAsync
包含了一个复杂的逻辑,从管道里根据当前的消息格式定义,接收报文信息,这个报文可能是来自服务器主动推送的。具体可以通过参数 useActivePush 来特殊控制。
Contains a complex logic from the pipeline, according to the current message format definition, to receive message information, this message may be actively pushed from the server. The parameter useActivePush can be used for special control.
公共方法ResetConnectErrorCount
重置当前的连续错误计数为0,并且返回重置前时候的值
公共方法Send(Byte)
发送数据到当前的管道中去
Send data to the current pipe
公共方法Send(Byte, Int32, Int32)
将一个数据缓存中的指定的部分字段,发送到当前的管道中去
Sends the specified partial field from a data cache to the current pipeline
公共方法SendAsync(Byte)
发送数据到当前的管道中去
Send data to the current pipe
公共方法SendAsync(Byte, Int32, Int32)
将一个数据缓存中的指定的部分字段,发送到当前的管道中去
Sends the specified partial field from a data cache to the current pipeline
受保护的方法SetBufferQA
设置当前的问答状态下的缓存数据
公共方法StartReceiveBackground
开始后台接收相关的报文数据,当UseServerActivePush为True时,则使用本方法
公共方法ToString
Returns a string that represents the current object.
(继承自 Object。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见