Del via


StreamManager Class

Definition

StreamManagers are used to provide access to the objects involved in processing incoming PayloadStreams.

public class StreamManager : Microsoft.Bot.Streaming.Payloads.IStreamManager
type StreamManager = class
    interface IStreamManager
Public Class StreamManager
Implements IStreamManager
Inheritance
StreamManager
Implements

Constructors

StreamManager(Action<PayloadStreamAssembler>)

Initializes a new instance of the StreamManager class.

Methods

CloseStream(Guid)

Closes the PayloadStreamAssembler assigned to the PayloadStream with the given ID.

GetPayloadAssembler(Guid)

Retrieves a PayloadStreamAssembler with the given ID if one exists, otherwise a new instance is created and assigned the given ID.

GetPayloadStream(Header)

Retrieves the PayloadStream from the PayloadStreamAssembler this manager manages.

OnReceive(Header, Stream, Int32)

Used to set the behavior of the managed PayloadStreamAssembler when data is received.

Applies to