1 write to CurrentContext
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
825CurrentContext = 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)
679var context = FunctionInvokingChatClient.CurrentContext!; 719Assert.Null(FunctionInvokingChatClient.CurrentContext); 756FunctionInvokingChatClient.CurrentContext!.Terminate = true;