1 write to CurrentContext
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1163CurrentContext = context; // doesn't need to be explicitly reset after, as that's handled automatically at async method exit
6 references to CurrentContext
Microsoft.Extensions.AI (3)
ChatCompletion\ImageGeneratingChatClient.cs (3)
375var callId = FunctionInvokingChatClient.CurrentContext?.CallContent.CallId; 410var callId = FunctionInvokingChatClient.CurrentContext?.CallContent.CallId; 428var callId = FunctionInvokingChatClient.CurrentContext?.CallContent.CallId;
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
842var context = FunctionInvokingChatClient.CurrentContext!; 882Assert.Null(FunctionInvokingChatClient.CurrentContext); 919FunctionInvokingChatClient.CurrentContext!.Terminate = true;