| | | 1 | | using System.Collections.Generic; |
| | | 2 | | |
| | | 3 | | namespace NexusLabs.Needlr.Generators.Models; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Aggregated result of type discovery for an assembly. |
| | | 7 | | /// </summary> |
| | | 8 | | internal readonly struct DiscoveryResult |
| | | 9 | | { |
| | | 10 | | public DiscoveryResult( |
| | | 11 | | IReadOnlyList<DiscoveredType> injectableTypes, |
| | | 12 | | IReadOnlyList<DiscoveredPlugin> pluginTypes, |
| | | 13 | | IReadOnlyList<DiscoveredDecorator> decorators, |
| | | 14 | | IReadOnlyList<InaccessibleType> inaccessibleTypes, |
| | | 15 | | IReadOnlyList<MissingTypeRegistryPlugin> missingTypeRegistryPlugins, |
| | | 16 | | IReadOnlyList<DiscoveredInterceptedService> interceptedServices, |
| | | 17 | | IReadOnlyList<DiscoveredFactory> factories, |
| | | 18 | | IReadOnlyList<DiscoveredOptions> options, |
| | | 19 | | IReadOnlyList<DiscoveredHostedService> hostedServices, |
| | | 20 | | IReadOnlyList<DiscoveredProvider> providers, |
| | | 21 | | IReadOnlyList<DiscoveredHttpClient> httpClients) |
| | | 22 | | { |
| | 458 | 23 | | InjectableTypes = injectableTypes; |
| | 458 | 24 | | PluginTypes = pluginTypes; |
| | 458 | 25 | | Decorators = decorators; |
| | 458 | 26 | | InaccessibleTypes = inaccessibleTypes; |
| | 458 | 27 | | MissingTypeRegistryPlugins = missingTypeRegistryPlugins; |
| | 458 | 28 | | InterceptedServices = interceptedServices; |
| | 458 | 29 | | Factories = factories; |
| | 458 | 30 | | Options = options; |
| | 458 | 31 | | HostedServices = hostedServices; |
| | 458 | 32 | | Providers = providers; |
| | 458 | 33 | | HttpClients = httpClients; |
| | 458 | 34 | | } |
| | | 35 | | |
| | 3030 | 36 | | public IReadOnlyList<DiscoveredType> InjectableTypes { get; } |
| | 3536 | 37 | | public IReadOnlyList<DiscoveredPlugin> PluginTypes { get; } |
| | 4003 | 38 | | public IReadOnlyList<DiscoveredDecorator> Decorators { get; } |
| | 460 | 39 | | public IReadOnlyList<InaccessibleType> InaccessibleTypes { get; } |
| | 459 | 40 | | public IReadOnlyList<MissingTypeRegistryPlugin> MissingTypeRegistryPlugins { get; } |
| | 4005 | 41 | | public IReadOnlyList<DiscoveredInterceptedService> InterceptedServices { get; } |
| | 3560 | 42 | | public IReadOnlyList<DiscoveredFactory> Factories { get; } |
| | 3435 | 43 | | public IReadOnlyList<DiscoveredOptions> Options { get; } |
| | 4261 | 44 | | public IReadOnlyList<DiscoveredHostedService> HostedServices { get; } |
| | 1421 | 45 | | public IReadOnlyList<DiscoveredProvider> Providers { get; } |
| | 915 | 46 | | public IReadOnlyList<DiscoveredHttpClient> HttpClients { get; } |
| | | 47 | | } |