6 implementations of IImageGenerator
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.Tests (1)
145 references to IImageGenerator
Microsoft.Extensions.AI (50)
Image\ImageGeneratorBuilderServiceCollectionExtensions.cs (15)
12/// <summary>Provides extension methods for registering <see cref="IImageGenerator"/> with a <see cref="IServiceCollection"/>.</summary>
16/// <summary>Registers a singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary>
18/// <param name="innerGenerator">The inner <see cref="IImageGenerator"/> that represents the underlying backend.</param>
25IImageGenerator innerGenerator,
29/// <summary>Registers a singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary>
31/// <param name="innerGeneratorFactory">A callback that produces the inner <see cref="IImageGenerator"/> that represents the underlying backend.</param>
38Func<IServiceProvider, IImageGenerator> innerGeneratorFactory,
45serviceCollection.Add(new ServiceDescriptor(typeof(IImageGenerator), builder.Build, lifetime));
49/// <summary>Registers a keyed singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary>
52/// <param name="innerGenerator">The inner <see cref="IImageGenerator"/> that represents the underlying backend.</param>
60IImageGenerator innerGenerator,
64/// <summary>Registers a keyed singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary>
67/// <param name="innerGeneratorFactory">A callback that produces the inner <see cref="IImageGenerator"/> that represents the underlying backend.</param>
75Func<IServiceProvider, IImageGenerator> innerGeneratorFactory,
82serviceCollection.Add(new ServiceDescriptor(typeof(IImageGenerator), serviceKey, factory: (services, serviceKey) => builder.Build(services), lifetime));
Microsoft.Extensions.AI.Abstractions (28)
Image\ImageGeneratorExtensions.cs (14)
15/// <summary>Provides extension methods for <see cref="IImageGenerator"/>.</summary>
31/// <summary>Asks the <see cref="IImageGenerator"/> for an object of type <typeparamref name="TService"/>.</summary>
38/// The purpose of this method is to allow for the retrieval of strongly typed services that may be provided by the <see cref="IImageGenerator"/>,
41public static TService? GetService<TService>(this IImageGenerator generator, object? serviceKey = null)
49/// Asks the <see cref="IImageGenerator"/> for an object of the specified type <paramref name="serviceType"/>
60/// The purpose of this method is to allow for the retrieval of services that are required to be provided by the <see cref="IImageGenerator"/>,
63public static object GetRequiredService(this IImageGenerator generator, Type serviceType, object? serviceKey = null)
74/// Asks the <see cref="IImageGenerator"/> for an object of type <typeparamref name="TService"/>
84/// The purpose of this method is to allow for the retrieval of strongly typed services that are required to be provided by the <see cref="IImageGenerator"/>,
87public static TService GetRequiredService<TService>(this IImageGenerator generator, object? serviceKey = null)
109this IImageGenerator generator,
131this IImageGenerator generator,
155this IImageGenerator generator,
182this IImageGenerator generator,
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.AI.OpenAI.Tests (4)
Microsoft.Extensions.AI.Tests (53)