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