SlackStream Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an interface for streaming message content to a Slack channel or thread using the Slack API. Supports starting, appending to, and stopping a message stream with support for rich content blocks and markdown.
public class SlackStream
type SlackStream = class
Public Class SlackStream
- Inheritance
-
SlackStream
Remarks
A SlackStream instance is typically used to incrementally build and update a Slack message in real time, such as for long-running tasks or interactive workflows. The stream must be started with StartAsync before appending content, and stopped with StopAsync when complete. This class is not thread-safe; concurrent operations on the same instance may result in undefined behavior.
Methods
| Name | Description |
|---|---|
| AppendAsync(Chunk) |
Appends the specified chunk to the stream asynchronously. |
| AppendAsync(IList<Chunk>) |
Appends the specified chunks to the Slack message stream asynchronously. |
| AppendAsync(String) |
Appends a new chunk of Markdown-formatted text to the stream asynchronously. |
| StartAsync(String) |
Starts a new Slack message stream asynchronously using the specified task display mode. |
| StopAsync(IList<Chunk>, IList<Object>) |
Stops the active Slack message stream for the specified channel and message. |
| StopAsync(IList<Chunk>, String) |
Stops the active Slack message stream for the current channel and message, optionally updating the message with the specified chunks and blocks. |