Freigeben über


AgentChat.SetActivityOrThrow Method

Definition

Test to ensure chat is not concurrently active and throw exception if it is. If not, activity is signaled.

protected void SetActivityOrThrow ();
member this.SetActivityOrThrow : unit -> unit
Protected Sub SetActivityOrThrow ()

Remarks

Rather than allowing concurrent invocation to result in undefined behavior / failure, it is preferred to fail-fast in order to avoid side-effects / state mutation. The activity signal is used to manage ability and visibility for taking actions based on conversation history.

Applies to