SlackApi Constructors
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.
Overloads
| Name | Description |
|---|---|
| SlackApi(IHttpClientFactory) | |
| SlackApi(IHttpClientFactory, Action) |
Initializes a new instance of the SlackApi class. |
SlackApi(IHttpClientFactory)
public SlackApi(System.Net.Http.IHttpClientFactory httpClientFactory);
new Microsoft.Agents.Extensions.Slack.Api.SlackApi : System.Net.Http.IHttpClientFactory -> Microsoft.Agents.Extensions.Slack.Api.SlackApi
Public Sub New (httpClientFactory As IHttpClientFactory)
Parameters
- httpClientFactory
- IHttpClientFactory
Applies to
SlackApi(IHttpClientFactory, Action)
Initializes a new instance of the SlackApi class.
public SlackApi(System.Net.Http.IHttpClientFactory httpClientFactory, Action? onCallAsync);
new Microsoft.Agents.Extensions.Slack.Api.SlackApi : System.Net.Http.IHttpClientFactory * Action -> Microsoft.Agents.Extensions.Slack.Api.SlackApi
Public Sub New (httpClientFactory As IHttpClientFactory, onCallAsync As Action)
Parameters
- httpClientFactory
- IHttpClientFactory
The factory used to create named HTTP clients for Slack requests.
- onCallAsync
- Action
An optional callback invoked on every CallAsync(String, Object, String, CancellationToken) before the request is sent. This is used to notify the turn that a message is being delivered out-of-band (bypassing the send pipeline), for example to reset the per-turn typing timer interval so the typing indicator timing stays consistent.