AgentChat.SetActivityOrThrow Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.