Soenneker.Messages.MsTeams
4.0.431
Prefix Reserved
dotnet add package Soenneker.Messages.MsTeams --version 4.0.431
NuGet\Install-Package Soenneker.Messages.MsTeams -Version 4.0.431
<PackageReference Include="Soenneker.Messages.MsTeams" Version="4.0.431" />
<PackageVersion Include="Soenneker.Messages.MsTeams" Version="4.0.431" />
<PackageReference Include="Soenneker.Messages.MsTeams" />
paket add Soenneker.Messages.MsTeams --version 4.0.431
#r "nuget: Soenneker.Messages.MsTeams, 4.0.431"
#:package Soenneker.Messages.MsTeams@4.0.431
#addin nuget:?package=Soenneker.Messages.MsTeams&version=4.0.431
#tool nuget:?package=Soenneker.Messages.MsTeams&version=4.0.431
Soenneker.Messages.MsTeams
Defines a message envelope for routing an Adaptive Card payload to a named Microsoft Teams channel.
Installation
dotnet add package Soenneker.Messages.MsTeams
Create a message
using AdaptiveCards;
using Soenneker.Dtos.AdaptiveCard.Attachments;
using Soenneker.Dtos.MsTeams.Card;
using Soenneker.Messages.MsTeams;
var card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 5));
card.Body.Add(new AdaptiveTextBlock
{
Text = "Deployment completed",
Weight = AdaptiveTextWeight.Bolder
});
var teamsCard = new MsTeamsCard();
teamsCard.Attachments.Add(new AdaptiveCardAttachments(card));
var message = new MsTeamsMessage
{
Type = "teams.notification.v1",
Id = Guid.NewGuid().ToString("N"),
Queue = "teams-notifications",
Sender = "deployment-service",
CreatedAt = DateTimeOffset.UtcNow,
Channel = "engineering-alerts",
MsTeamsCard = teamsCard
};
MsTeamsCard.Type defaults to message. Its Attachments collection starts empty, so add at least one card before publishing the message.
Consumer responsibilities
This package models the queue payload only. It does not resolve Channel, store a webhook URL, validate the Adaptive Card, or send a request to Teams. The receiving service should:
- map
Channelto an approved destination rather than treating it as an arbitrary URL; - reject missing or empty channel names and attachment collections;
- validate that each card schema version and element is supported by the target Teams client or webhook;
- avoid placing credentials, webhook URLs, or sensitive operational data in the message or card content.
C# required members required metadata do not replace validation at the message-processing boundary.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Dtos.MsTeams.Card (>= 4.0.160)
- Soenneker.Messages.Base (>= 4.0.1220)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Soenneker.Messages.MsTeams:
| Package | Downloads |
|---|---|
|
Soenneker.MsTeams.Util
A centralized utility for sending rich, configurable Adaptive Card messages to Microsoft Teams channels via a service bus, with environment-aware filtering and dynamic content generation. |
|
|
Soenneker.MsTeams.Sender
A utility that sends Adaptive Card messages to Microsoft Teams via configured webhooks, handling channel routing, logging, and error responses including rate-limiting. |
|
|
Soenneker.AutoFaker.Overrides.Messages.MsTeams
An AutoFaker (AutoBogus) override for the MsTeams Message |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.431 | 290 | 10/15/2026 |
| 4.0.430 | 64 | 10/14/2026 |
| 4.0.429 | 240 | 10/14/2026 |
| 4.0.428 | 127 | 10/14/2026 |
| 4.0.426 | 45 | 10/14/2026 |
| 4.0.425 | 43 | 10/14/2026 |
| 4.0.418 | 209 | 10/13/2026 |
| 4.0.417 | 315 | 10/12/2026 |
| 4.0.415 | 71 | 10/12/2026 |
| 4.0.414 | 175 | 10/12/2026 |
| 4.0.413 | 439 | 10/12/2026 |
| 4.0.412 | 172 | 10/11/2026 |
| 4.0.411 | 139 | 10/11/2026 |
| 4.0.410 | 177 | 10/11/2026 |
| 4.0.409 | 1,351 | 9/30/2026 |
| 4.0.408 | 140 | 9/30/2026 |
| 4.0.407 | 128 | 9/30/2026 |
| 4.0.405 | 117 | 9/30/2026 |
| 4.0.404 | 1,070 | 9/26/2026 |
| 4.0.403 | 653 | 9/25/2026 |
Updated NuGet packages