Component evidence

Slack Inbound Event Handler (MessageX.Slack/SlackInboundEvent.cs)

PSTeams · Sources/MessageX.Slack/SlackInboundEvent.cs · csharp · MIT
integrationchatlang:csharp

A strongly-typed C# model for processing and verifying incoming Slack Events API payloads. Use this to safely handle and rehydrate Slack webhook data in .NET applications.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/EvotecIT/PSTeams | License: MIT | Copyright 2011-2020 Evotec
// Provided via justclaw.it.com; keep this notice with the code.
using System.Text.Json.Serialization;

namespace MessageX.Slack;

/// <summary>Verified provider-native Slack Events API callback payload.</summary>
public sealed class SlackInboundEvent {
    /// <summary>Creates a verified Slack inbound-event value or rehydrates its safe persisted projection.</summary>
    [JsonConstructor]
    public SlackInboundEvent(
        string eventType,
        SlackEventPayload providerEvent,
        string? text,
        string? retryReason,
        int? retryNumber) {
        EventType = eventType;
        ProviderEvent = providerEvent;
        Text = text;
        RetryReason = retryReason;
        RetryN

... (truncated -- full source via MCP)