ภาษา

ActivityResolutionContext Struct

Definition

The discriminator values peeked from an inbound Activity's JSON, used to resolve which custom Activity subclass to deserialize into.

public readonly struct ActivityResolutionContext
type ActivityResolutionContext = struct
Public Structure ActivityResolutionContext
Inheritance
ActivityResolutionContext

Remarks

Only the well-known top-level discriminators are surfaced (cheap to peek without a full parse). ChannelId is the channel segment only — any :product sub-channel suffix is stripped — so matching against a bare channel id (e.g. "msteams") works regardless of the ChannelIdIncludesProduct setting.

Constructors

Name Description
ActivityResolutionContext(String, String, String)

Initializes a new instance of the ActivityResolutionContext struct.

Properties

Name Description
ChannelId

The Activity channelId channel segment (e.g., "msteams").

Name

The Activity name field (e.g., an invoke name like "task/fetch").

Type

The Activity type field (e.g., "message", "invoke", "x-custom").

Applies to