ServiceCollectionPluginOptions
NexusLabs.Needlr¶
NexusLabs.Needlr¶
ServiceCollectionPluginOptions Class¶
Options provided to IServiceCollectionPlugin implementations during configuration. Contains the service collection, configuration, discovered assemblies, and plugin factory.
public sealed record ServiceCollectionPluginOptions : System.IEquatable<NexusLabs.Needlr.ServiceCollectionPluginOptions>
Inheritance System.Object 🡒 ServiceCollectionPluginOptions
Implements System.IEquatable<ServiceCollectionPluginOptions>
Constructors¶
ServiceCollectionPluginOptions(IServiceCollection, IConfiguration, IReadOnlyList<Assembly>, IPluginFactory) Constructor¶
Options provided to IServiceCollectionPlugin implementations during configuration. Contains the service collection, configuration, discovered assemblies, and plugin factory.
public ServiceCollectionPluginOptions(Microsoft.Extensions.DependencyInjection.IServiceCollection Services, Microsoft.Extensions.Configuration.IConfiguration Config, System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly> Assemblies, NexusLabs.Needlr.IPluginFactory PluginFactory);
Parameters¶
Services Microsoft.Extensions.DependencyInjection.IServiceCollection
The service collection for registering dependencies.
Config Microsoft.Extensions.Configuration.IConfiguration
The application configuration.
Assemblies System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly>
The list of assemblies discovered by Needlr.
PluginFactory IPluginFactory
Factory for creating additional plugin instances.
Properties¶
ServiceCollectionPluginOptions.Assemblies Property¶
The list of assemblies discovered by Needlr.
public System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly> Assemblies { get; init; }
Property Value¶
System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly>
ServiceCollectionPluginOptions.Config Property¶
The application configuration.
Property Value¶
Microsoft.Extensions.Configuration.IConfiguration
ServiceCollectionPluginOptions.PluginFactory Property¶
Factory for creating additional plugin instances.
Property Value¶
ServiceCollectionPluginOptions.Services Property¶
The service collection for registering dependencies.