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)
11/// <summary>Provides extension methods for registering <see cref="IImageGenerator"/> with a <see cref="IServiceCollection"/>.</summary>
15/// <summary>Registers a singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary>
17/// <param name="innerGenerator">The inner <see cref="IImageGenerator"/> that represents the underlying backend.</param>
24IImageGenerator innerGenerator,
28/// <summary>Registers a singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary>
30/// <param name="innerGeneratorFactory">A callback that produces the inner <see cref="IImageGenerator"/> that represents the underlying backend.</param>
37Func<IServiceProvider, IImageGenerator> innerGeneratorFactory,
44serviceCollection.Add(new ServiceDescriptor(typeof(IImageGenerator), builder.Build, lifetime));
48/// <summary>Registers a keyed singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary>
51/// <param name="innerGenerator">The inner <see cref="IImageGenerator"/> that represents the underlying backend.</param>
59IImageGenerator innerGenerator,
63/// <summary>Registers a keyed singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary>
66/// <param name="innerGeneratorFactory">A callback that produces the inner <see cref="IImageGenerator"/> that represents the underlying backend.</param>
74Func<IServiceProvider, IImageGenerator> innerGeneratorFactory,
81serviceCollection.Add(new ServiceDescriptor(typeof(IImageGenerator), serviceKey, factory: (services, serviceKey) => builder.Build(services), lifetime));
Microsoft.Extensions.AI.Abstractions (28)
Image\ImageGeneratorExtensions.cs (14)
14/// <summary>Provides extension methods for <see cref="IImageGenerator"/>.</summary>
30/// <summary>Asks the <see cref="IImageGenerator"/> for an object of type <typeparamref name="TService"/>.</summary>
37/// The purpose of this method is to allow for the retrieval of strongly typed services that may be provided by the <see cref="IImageGenerator"/>,
40public static TService? GetService<TService>(this IImageGenerator generator, object? serviceKey = null)
48/// Asks the <see cref="IImageGenerator"/> for an object of the specified type <paramref name="serviceType"/>
59/// The purpose of this method is to allow for the retrieval of services that are required to be provided by the <see cref="IImageGenerator"/>,
62public static object GetRequiredService(this IImageGenerator generator, Type serviceType, object? serviceKey = null)
73/// Asks the <see cref="IImageGenerator"/> for an object of type <typeparamref name="TService"/>
83/// 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"/>,
86public static TService GetRequiredService<TService>(this IImageGenerator generator, object? serviceKey = null)
108this IImageGenerator generator,
130this IImageGenerator generator,
154this IImageGenerator generator,
181this 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)