1 write to CurrentContext
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
834CurrentContext = context; // doesn't need to be explicitly reset after, as that's handled automatically at async method exit
3 references to CurrentContext
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
752var context = FunctionInvokingChatClient.CurrentContext!; 792Assert.Null(FunctionInvokingChatClient.CurrentContext); 829FunctionInvokingChatClient.CurrentContext!.Terminate = true;