Table of Contents

Method TryGetPrivateChatAsync

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

TryGetPrivateChatAsync(string, CancellationToken)

Tries to fetch the private chat of the given user and the DataMiner Teams Bot.

Task<IChat> TryGetPrivateChatAsync(string email, CancellationToken cancellationToken = default)

Parameters

email string

The email addresses of the user (which is part of the tenant)

cancellationToken CancellationToken

Returns

Task<IChat>

The private chat of the given user and the DataMiner Teams Bot or null when not found.

Remarks

The organizations Microsoft Teams tenant must be configured in the Admin App and the required permissions must be granted. Note that, if new features require more permissions than were granted before, you can easily refresh your configured tenant to update it's permissions in the Admin App.

Exceptions

TeamsChatIntegrationException

If anything went wrong.