75 references to IfNull
Microsoft.Extensions.AI (75)
CachingHelpers.cs (2)
30
_ = Throw.
IfNull
(value);
31
_ = Throw.
IfNull
(serializerOptions);
ChatCompletion\CachingChatClient.cs (2)
44
_ = Throw.
IfNull
(chatMessages);
65
_ = Throw.
IfNull
(chatMessages);
ChatCompletion\ChatClientBuilder.cs (3)
31
var chatClient = Throw.
IfNull
(innerClient);
53
_ = Throw.
IfNull
(clientFactory);
63
_ = Throw.
IfNull
(clientFactory);
ChatCompletion\ChatClientBuilderServiceCollectionExtensions.cs (5)
22
_ = Throw.
IfNull
(services);
23
_ = Throw.
IfNull
(clientFactory);
40
_ = Throw.
IfNull
(services);
41
_ = Throw.
IfNull
(serviceKey);
42
_ = Throw.
IfNull
(clientFactory);
ChatCompletion\ChatClientStructuredOutputExtensions.cs (3)
121
_ = Throw.
IfNull
(chatClient);
122
_ = Throw.
IfNull
(chatMessages);
123
_ = Throw.
IfNull
(serializerOptions);
ChatCompletion\ChatCompletion{T}.cs (2)
34
: base(Throw.
IfNull
(completion).Choices)
36
_serializerOptions = Throw.
IfNull
(serializerOptions);
ChatCompletion\ConfigureOptionsChatClient.cs (1)
53
_configureOptions = Throw.
IfNull
(configureOptions);
ChatCompletion\ConfigureOptionsChatClientBuilderExtensions.cs (2)
42
_ = Throw.
IfNull
(builder);
43
_ = Throw.
IfNull
(configureOptions);
ChatCompletion\DistributedCachingChatClient.cs (8)
31
_storage = Throw.
IfNull
(storage);
39
set => _jsonSerializerOptions = Throw.
IfNull
(value);
45
_ = Throw.
IfNull
(key);
59
_ = Throw.
IfNull
(key);
73
_ = Throw.
IfNull
(key);
74
_ = Throw.
IfNull
(value);
84
_ = Throw.
IfNull
(key);
85
_ = Throw.
IfNull
(value);
ChatCompletion\DistributedCachingChatClientBuilderExtensions.cs (1)
27
_ = Throw.
IfNull
(builder);
ChatCompletion\FunctionInvokingChatClient.cs (5)
174
_ = Throw.
IfNull
(chatMessages);
276
_ = Throw.
IfNull
(chatMessages);
517
_ = Throw.
IfNull
(chat);
531
_ = Throw.
IfNull
(result);
567
_ = Throw.
IfNull
(context);
ChatCompletion\FunctionInvokingChatClientBuilderExtensions.cs (1)
23
_ = Throw.
IfNull
(builder);
ChatCompletion\LoggingChatClient.cs (2)
34
_logger = Throw.
IfNull
(logger);
42
set => _jsonSerializerOptions = Throw.
IfNull
(value);
ChatCompletion\LoggingChatClientBuilderExtensions.cs (1)
24
_ = Throw.
IfNull
(builder);
ChatCompletion\OpenTelemetryChatClient.cs (3)
85
set => _jsonSerializerOptions = Throw.
IfNull
(value);
112
_ = Throw.
IfNull
(chatMessages);
143
_ = Throw.
IfNull
(chatMessages);
ChatCompletion\OpenTelemetryChatClientBuilderExtensions.cs (1)
31
Throw.
IfNull
(builder).Use((services, innerClient) =>
Embeddings\CachingEmbeddingGenerator.cs (1)
31
_ = Throw.
IfNull
(values);
Embeddings\DistributedCachingEmbeddingGenerator.cs (5)
35
_ = Throw.
IfNull
(storage);
46
_ = Throw.
IfNull
(value);
54
_ = Throw.
IfNull
(key);
68
_ = Throw.
IfNull
(key);
69
_ = Throw.
IfNull
(value);
Embeddings\DistributedCachingEmbeddingGeneratorBuilderExtensions.cs (1)
34
_ = Throw.
IfNull
(builder);
Embeddings\EmbeddingGeneratorBuilder.cs (3)
41
var embeddingGenerator = Throw.
IfNull
(innerGenerator);
63
_ = Throw.
IfNull
(generatorFactory);
73
_ = Throw.
IfNull
(generatorFactory);
Embeddings\EmbeddingGeneratorBuilderServiceCollectionExtensions.cs (5)
25
_ = Throw.
IfNull
(services);
26
_ = Throw.
IfNull
(generatorFactory);
46
_ = Throw.
IfNull
(services);
47
_ = Throw.
IfNull
(serviceKey);
48
_ = Throw.
IfNull
(generatorFactory);
Embeddings\LoggingEmbeddingGenerator.cs (2)
37
_logger = Throw.
IfNull
(logger);
45
set => _jsonSerializerOptions = Throw.
IfNull
(value);
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (1)
27
_ = Throw.
IfNull
(builder);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
78
_ = Throw.
IfNull
(values);
Embeddings\OpenTelemetryEmbeddingGeneratorBuilderExtensions.cs (1)
34
Throw.
IfNull
(builder).Use((services, innerGenerator) =>
Functions\AIFunctionFactory.cs (6)
33
_ = Throw.
IfNull
(method);
46
_ = Throw.
IfNull
(method);
73
_ = Throw.
IfNull
(method);
92
_ = Throw.
IfNull
(method);
127
_ = Throw.
IfNull
(method);
128
_ = Throw.
IfNull
(options);
Functions\AIFunctionFactory.Utilities.cs (1)
21
_ = Throw.
IfNull
(memberName);
Functions\AIFunctionFactoryCreateOptions.cs (1)
31
set => _options = Throw.
IfNull
(value);
Utilities\AIJsonUtilities.Schema.cs (5)
64
_ = Throw.
IfNull
(parameterMetadata);
65
_ = Throw.
IfNull
(functionMetadata);
107
_ = Throw.
IfNull
(parameterName);
141
_ = Throw.
IfNull
(serializerOptions);
181
_ = Throw.
IfNull
(options);