Language

SlackAgentExtension.CreateStreamAsync(ITurnContext, String) Method

Definition

Creates and starts a new Slack stream for the specified conversation or thread.

public System.Threading.Tasks.Task<Microsoft.Agents.Extensions.Slack.Api.SlackStream> CreateStreamAsync(Microsoft.Agents.Builder.ITurnContext turnContext, string? thread_ts = default);
member this.CreateStreamAsync : Microsoft.Agents.Builder.ITurnContext * string -> System.Threading.Tasks.Task<Microsoft.Agents.Extensions.Slack.Api.SlackStream>
Public Function CreateStreamAsync (turnContext As ITurnContext, Optional thread_ts As String = Nothing) As Task(Of SlackStream)

Parameters

turnContext
ITurnContext

The turn context containing the current activity and service references. Cannot be null.

thread_ts
String

The thread timestamp identifying the Slack thread to join. If null, the value from "event.ts" is used.

Returns

A task that represents the asynchronous operation. The task result contains the started Slack stream.

Applies to