Table of Contents

Method TryGetChannelsAsync

Namespace
Skyline.DataMiner.DcpChatIntegrationHelper.Teams
Assembly
Skyline.DataMiner.DcpChatIntegrationHelper.dll

TryGetChannelsAsync(string, CancellationToken)

Tries to fetch all channels from the given team from Microsoft Teams.

Task<IEnumerable<IChannel>> TryGetChannelsAsync(string teamId, CancellationToken cancellationToken = default)

Parameters

teamId string

The id of the team where to create the channel. This id is returned when creating a team using TryCreateTeamAsync(string, string, CancellationToken) or when fetching them using TryGetTeamsAsync(CancellationToken).

cancellationToken CancellationToken

Optional.

Returns

Task<IEnumerable<IChannel>>

All the teams. Might be empty but never null.

Remarks

The organizations Microsoft Teams tenant can be configured in the Admin App.

Exceptions

TeamsChatIntegrationException

If anything went wrong.