38 references to DistributedCachingChatClientTest
Microsoft.Extensions.AI.Tests (38)
ChatCompletion\CustomAIContentJsonContext.cs (2)
8
[JsonSerializable(typeof(
DistributedCachingChatClientTest
.CustomAIContent1))]
9
[JsonSerializable(typeof(
DistributedCachingChatClientTest
.CustomAIContent2))]
Generated\361d1da7f942c932\CustomAIContentJsonContext.CustomAIContent1.g.cs (17)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1>? _CustomAIContent1;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1> CustomAIContent1
22
get => _CustomAIContent1 ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1> Create_CustomAIContent1(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1>
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1((string)args[0], (global::System.DateTime)args[1]),
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::System.DateTime)}, modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1),
58
Getter = static obj => ((global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1)obj).Text,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
77
DeclaringType = typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1),
79
Getter = static obj => ((global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1)obj).Date,
87
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1).GetProperty("Date", InstanceMemberBindingFlags, null, typeof(global::System.DateTime), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\CustomAIContentJsonContext.CustomAIContent2.g.cs (17)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2>? _CustomAIContent2;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2> CustomAIContent2
22
get => _CustomAIContent2 ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2> Create_CustomAIContent2(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2>
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2((string)args[0], (int)args[1]),
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(int)}, modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2),
58
Getter = static obj => ((global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2)obj).Text,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
77
DeclaringType = typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2),
79
Getter = static obj => ((global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2)obj).Number,
87
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2).GetProperty("Number", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\CustomAIContentJsonContext.GetJsonTypeInfo.g.cs (2)
38
if (type == typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent1))
42
if (type == typeof(global::Microsoft.Extensions.AI.
DistributedCachingChatClientTest
.CustomAIContent2))