1 write to CurrentContext
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1144CurrentContext = 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)
824var context = FunctionInvokingChatClient.CurrentContext!; 864Assert.Null(FunctionInvokingChatClient.CurrentContext); 901FunctionInvokingChatClient.CurrentContext!.Terminate = true;