| | | 1 | | using Microsoft.Extensions.Configuration; |
| | | 2 | | |
| | | 3 | | using System.Reflection; |
| | | 4 | | |
| | | 5 | | namespace NexusLabs.Needlr; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Options provided to <see cref="IPostBuildServiceCollectionPlugin"/> implementations during configuration. |
| | | 9 | | /// Contains the built service provider, configuration, discovered assemblies, and plugin factory. |
| | | 10 | | /// </summary> |
| | | 11 | | /// <param name="Provider">The built service provider for resolving dependencies.</param> |
| | | 12 | | /// <param name="Config">The application configuration.</param> |
| | | 13 | | /// <param name="Assemblies"> |
| | | 14 | | /// The candidate assemblies selected by Needlr. Source-generated discovery includes every |
| | | 15 | | /// generated TypeRegistry participant, including empty registries, when assembly metadata is available. |
| | | 16 | | /// </param> |
| | | 17 | | /// <param name="PluginFactory">Factory for creating additional plugin instances.</param> |
| | 582 | 18 | | public sealed record PostBuildServiceCollectionPluginOptions( |
| | 2 | 19 | | IServiceProvider Provider, |
| | 0 | 20 | | IConfiguration Config, |
| | 1 | 21 | | IReadOnlyList<Assembly> Assemblies, |
| | 585 | 22 | | IPluginFactory PluginFactory); |