83 references to IfNull
Microsoft.Extensions.AI (83)
ChatCompletion\AnonymousDelegatingChatClient.cs (3)
51
_ = Throw.
IfNull
(sharedFunc);
88
_ = Throw.
IfNull
(chatMessages);
126
_ = Throw.
IfNull
(chatMessages);
ChatCompletion\CachingChatClient.cs (2)
50
_ = Throw.
IfNull
(chatMessages);
70
_ = Throw.
IfNull
(chatMessages);
ChatCompletion\ChatClientBuilder.cs (5)
24
_ = Throw.
IfNull
(innerClient);
32
_innerClientFactory = Throw.
IfNull
(innerClientFactory);
66
_ = Throw.
IfNull
(clientFactory);
76
_ = Throw.
IfNull
(clientFactory);
100
_ = Throw.
IfNull
(sharedFunc);
ChatCompletion\ChatClientBuilderChatClientExtensions.cs (1)
21
_ = Throw.
IfNull
(innerClient);
ChatCompletion\ChatClientBuilderServiceCollectionExtensions.cs (5)
32
_ = Throw.
IfNull
(serviceCollection);
33
_ = Throw.
IfNull
(innerClientFactory);
63
_ = Throw.
IfNull
(serviceCollection);
64
_ = Throw.
IfNull
(serviceKey);
65
_ = Throw.
IfNull
(innerClientFactory);
ChatCompletion\ChatClientStructuredOutputExtensions.cs (3)
119
_ = Throw.
IfNull
(chatClient);
120
_ = Throw.
IfNull
(chatMessages);
121
_ = Throw.
IfNull
(serializerOptions);
ChatCompletion\ChatCompletion{T}.cs (2)
34
: base(Throw.
IfNull
(completion).Choices)
36
_serializerOptions = Throw.
IfNull
(serializerOptions);
ChatCompletion\ConfigureOptionsChatClient.cs (1)
33
_configureOptions = Throw.
IfNull
(configure);
ChatCompletion\ConfigureOptionsChatClientBuilderExtensions.cs (2)
31
_ = Throw.
IfNull
(builder);
32
_ = Throw.
IfNull
(configure);
ChatCompletion\DistributedCachingChatClient.cs (8)
35
_storage = Throw.
IfNull
(storage);
42
set => _jsonSerializerOptions = Throw.
IfNull
(value);
48
_ = Throw.
IfNull
(key);
62
_ = Throw.
IfNull
(key);
76
_ = Throw.
IfNull
(key);
77
_ = Throw.
IfNull
(value);
87
_ = Throw.
IfNull
(key);
88
_ = Throw.
IfNull
(value);
ChatCompletion\DistributedCachingChatClientBuilderExtensions.cs (1)
27
_ = Throw.
IfNull
(builder);
ChatCompletion\FunctionInvokingChatClient.cs (5)
192
_ = Throw.
IfNull
(chatMessages);
301
_ = Throw.
IfNull
(chatMessages);
577
_ = Throw.
IfNull
(chat);
591
_ = Throw.
IfNull
(result);
627
_ = Throw.
IfNull
(context);
ChatCompletion\FunctionInvokingChatClientBuilderExtensions.cs (1)
29
_ = Throw.
IfNull
(builder);
ChatCompletion\LoggingChatClient.cs (2)
34
_logger = Throw.
IfNull
(logger);
42
set => _jsonSerializerOptions = Throw.
IfNull
(value);
ChatCompletion\LoggingChatClientBuilderExtensions.cs (1)
27
_ = Throw.
IfNull
(builder);
ChatCompletion\OpenTelemetryChatClient.cs (3)
87
set => _jsonSerializerOptions = Throw.
IfNull
(value);
124
_ = Throw.
IfNull
(chatMessages);
155
_ = Throw.
IfNull
(chatMessages);
ChatCompletion\OpenTelemetryChatClientBuilderExtensions.cs (1)
31
Throw.
IfNull
(builder).Use((innerClient, services) =>
Embeddings\AnonymousDelegatingEmbeddingGenerator.cs (2)
31
_ = Throw.
IfNull
(generateFunc);
40
_ = Throw.
IfNull
(values);
Embeddings\CachingEmbeddingGenerator.cs (1)
31
_ = Throw.
IfNull
(values);
Embeddings\ConfigureOptionsEmbeddingGenerator.cs (1)
40
_configureOptions = Throw.
IfNull
(configure);
Embeddings\ConfigureOptionsEmbeddingGeneratorBuilderExtensions.cs (2)
36
_ = Throw.
IfNull
(builder);
37
_ = Throw.
IfNull
(configure);
Embeddings\DistributedCachingEmbeddingGenerator.cs (5)
36
_ = Throw.
IfNull
(storage);
47
_ = Throw.
IfNull
(value);
55
_ = Throw.
IfNull
(key);
69
_ = Throw.
IfNull
(key);
70
_ = Throw.
IfNull
(value);
Embeddings\DistributedCachingEmbeddingGeneratorBuilderExtensions.cs (1)
34
_ = Throw.
IfNull
(builder);
Embeddings\EmbeddingGeneratorBuilder.cs (5)
27
_ = Throw.
IfNull
(innerGenerator);
35
_innerGeneratorFactory = Throw.
IfNull
(innerGeneratorFactory);
71
_ = Throw.
IfNull
(generatorFactory);
82
_ = Throw.
IfNull
(generatorFactory);
101
_ = Throw.
IfNull
(generateFunc);
Embeddings\EmbeddingGeneratorBuilderEmbeddingGeneratorExtensions.cs (1)
29
_ = Throw.
IfNull
(innerGenerator);
Embeddings\EmbeddingGeneratorBuilderServiceCollectionExtensions.cs (5)
38
_ = Throw.
IfNull
(serviceCollection);
39
_ = Throw.
IfNull
(innerGeneratorFactory);
75
_ = Throw.
IfNull
(serviceCollection);
76
_ = Throw.
IfNull
(serviceKey);
77
_ = Throw.
IfNull
(innerGeneratorFactory);
Embeddings\LoggingEmbeddingGenerator.cs (2)
37
_logger = Throw.
IfNull
(logger);
45
set => _jsonSerializerOptions = Throw.
IfNull
(value);
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (1)
30
_ = Throw.
IfNull
(builder);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
83
_ = Throw.
IfNull
(values);
Embeddings\OpenTelemetryEmbeddingGeneratorBuilderExtensions.cs (1)
34
Throw.
IfNull
(builder).Use((innerGenerator, services) =>
Functions\AIFunctionFactory.cs (6)
49
_ = Throw.
IfNull
(method);
78
_ = Throw.
IfNull
(method);
121
_ = Throw.
IfNull
(method);
156
_ = Throw.
IfNull
(method);
191
_ = Throw.
IfNull
(method);
192
_ = Throw.
IfNull
(options);
Functions\AIFunctionFactory.Utilities.cs (1)
21
_ = Throw.
IfNull
(memberName);
Functions\AIFunctionFactoryCreateOptions.cs (2)
32
set => _options = Throw.
IfNull
(value);
41
set => _schemaCreateOptions = Throw.
IfNull
(value);