語言

PayloadStreamAssembler 類別

定義

專門 IAssembler 針對有效載荷流。

public class PayloadStreamAssembler : Microsoft.Bot.Streaming.Payloads.IAssembler
type PayloadStreamAssembler = class
    interface IAssembler
Public Class PayloadStreamAssembler
Implements IAssembler
繼承
PayloadStreamAssembler
實作

建構函式

名稱 Description
PayloadStreamAssembler(IStreamManager, Guid, String, Nullable<Int32>)

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

PayloadStreamAssembler(IStreamManager, Guid)

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

屬性

名稱 Description
ContentLength

取得或設定有效載荷中內容的長度。

ContentType

取得或設定有效載荷中內容的類型。

End

會得到一個值,表示當前區段是否為串流的最後一段。

Id

取得這個組譯器的 ID。

方法

名稱 Description
Close()

關閉組合器。

CreateStreamFromPayload()

建立一個新的串流,填充組譯器有效載荷的位元組。

GetPayloadAsStream()

以串流回傳組合語言的有效載荷。

OnReceive(Header, Stream, Int32)

組合器在傳入數據流上收到新位元組時執行的動作。

適用於