4 types derived from ImageGenerationOptions
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Stabilization.Tests (2)
37 instantiations of ImageGenerationOptions
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Abstractions.Tests (12)
Microsoft.Extensions.AI.Integration.Tests (4)
Microsoft.Extensions.AI.OpenAI.Tests (8)
Microsoft.Extensions.AI.Stabilization.Tests (5)
Microsoft.Extensions.AI.Tests (4)
196 references to ImageGenerationOptions
Microsoft.Extensions.AI (24)
Microsoft.Extensions.AI.Abstractions (66)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ImageGenerationOptions.g.cs (47)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions>? _ImageGenerationOptions;
21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions> ImageGenerationOptions
24get => _ImageGenerationOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions));
27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions> Create_ImageGenerationOptions(global::System.Text.Json.JsonSerializerOptions options)
29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationOptions>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions> jsonTypeInfo))
31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationOptions>
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions>(options, objectInfo);
58DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
60Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).Count,
61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).Count = value!,
68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("Count", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
78DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
80Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ImageSize,
81Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ImageSize = value!,
88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("ImageSize", InstanceMemberBindingFlags, null, typeof(global::System.Drawing.Size?), global::System.Array.Empty<global::System.Type>(), null),
98DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
100Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).MediaType,
101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).MediaType = value!,
108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("MediaType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
118DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
120Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ModelId,
121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ModelId = value!,
128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
138DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
158DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
160Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ResponseFormat,
161Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ResponseFormat = value!,
168AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("ResponseFormat", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ImageGenerationResponseFormat?), global::System.Array.Empty<global::System.Type>(), null),
178DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
180Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).StreamingCount,
181Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).StreamingCount = value!,
188AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("StreamingCount", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
198DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
200Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).AdditionalProperties,
201Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).AdditionalProperties = value!,
208AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null),
218private void ImageGenerationOptionsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.ImageGenerationOptions? value)
228int? __value_Count = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).Count;
234global::System.Drawing.Size? __value_ImageSize = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).ImageSize;
240string __value_MediaType = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).MediaType;
245string __value_ModelId = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).ModelId;
250global::Microsoft.Extensions.AI.ImageGenerationResponseFormat? __value_ResponseFormat = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).ResponseFormat;
256int? __value_StreamingCount = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).StreamingCount;
262global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).AdditionalProperties;
Microsoft.Extensions.AI.Abstractions.Tests (72)
Generated\361d1da7f942c932\TestJsonSerializerContext.ImageGenerationOptions.g.cs (47)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions>? _ImageGenerationOptions;
19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions> ImageGenerationOptions
22get => _ImageGenerationOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions));
25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions> Create_ImageGenerationOptions(global::System.Text.Json.JsonSerializerOptions options)
27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationOptions>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions> jsonTypeInfo))
29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.ImageGenerationOptions>
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.ImageGenerationOptions>(options, objectInfo);
56DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
58Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).Count,
59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).Count = value!,
66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("Count", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
76DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
78Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ImageSize,
79Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ImageSize = value!,
86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("ImageSize", InstanceMemberBindingFlags, null, typeof(global::System.Drawing.Size?), global::System.Array.Empty<global::System.Type>(), null),
96DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
98Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).MediaType,
99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).MediaType = value!,
106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("MediaType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
116DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
118Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ModelId,
119Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ModelId = value!,
126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
136DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
156DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
158Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ResponseFormat,
159Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).ResponseFormat = value!,
166AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("ResponseFormat", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.ImageGenerationResponseFormat?), global::System.Array.Empty<global::System.Type>(), null),
176DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
178Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).StreamingCount,
179Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).StreamingCount = value!,
186AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("StreamingCount", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
196DeclaringType = typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions),
198Getter = static obj => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).AdditionalProperties,
199Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.ImageGenerationOptions)obj).AdditionalProperties = value!,
206AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.ImageGenerationOptions).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null),
216private void ImageGenerationOptionsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.ImageGenerationOptions? value)
226int? __value_Count = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).Count;
232global::System.Drawing.Size? __value_ImageSize = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).ImageSize;
238string __value_MediaType = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).MediaType;
243string __value_ModelId = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).ModelId;
248global::Microsoft.Extensions.AI.ImageGenerationResponseFormat? __value_ResponseFormat = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).ResponseFormat;
254int? __value_StreamingCount = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).StreamingCount;
260global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.ImageGenerationOptions)value).AdditionalProperties;
Microsoft.Extensions.AI.Integration.Tests (8)
Microsoft.Extensions.AI.OpenAI (6)
Microsoft.Extensions.AI.Stabilization.Tests (15)
Microsoft.Extensions.AI.Tests (5)