Pantheon.Discovery
1.0.3
dotnet add package Pantheon.Discovery --version 1.0.3
NuGet\Install-Package Pantheon.Discovery -Version 1.0.3
<PackageReference Include="Pantheon.Discovery" Version="1.0.3" />
<PackageVersion Include="Pantheon.Discovery" Version="1.0.3" />
<PackageReference Include="Pantheon.Discovery" />
paket add Pantheon.Discovery --version 1.0.3
#r "nuget: Pantheon.Discovery, 1.0.3"
#:package Pantheon.Discovery@1.0.3
#addin nuget:?package=Pantheon.Discovery&version=1.0.3
#tool nuget:?package=Pantheon.Discovery&version=1.0.3
Pantheon.Discovery
Assembly discovery and dependency ordering for Pantheon modules.
dotnet add package Pantheon.Discovery
Discover modules in one or more assemblies, sort them by their declared dependencies, and register them with a modular application:
using System.Reflection;
using Pantheon;
using Pantheon.Discovery;
using Microsoft.Extensions.DependencyInjection;
var application = new ModularApplication<MyApplication, MyApplicationBuilder>(builder);
application.AddModulesFromAssemblies([Assembly.GetExecutingAssembly()]);
By default, discovered modules need a public parameterless constructor. Pass a factory to create modules that require dependencies:
application.AddModulesFromAssemblies(
[Assembly.GetExecutingAssembly()],
moduleType => (IModule<MyApplication, MyApplicationBuilder>)ActivatorUtilities.CreateInstance(
services,
moduleType));
Configurable modules can provide a same-namespace
<ModuleClassName>Configuration class implementing
IModuleConfiguration<TFluentConfiguration>. Discovery creates that
configuration class using its public parameterless constructor and applies it
to the module's FluentConfiguration object. The convention class is looked
up in the calling assembly, not the assembly containing the module. If no
convention configuration class exists, the module's defaults are retained.
The stages are also available individually through
ModuleDiscovery.DiscoverModules, ModuleDependencySorter.SortModules, and
ModuleRegistration.RegisterModules. Package-detected discovery and dependency
configuration failures throw PantheonPackageException from the
Pantheon.Common package; inspect its Code property for stable identification.
Exceptions thrown by user-provided module constructors, factories, or dependency
properties are available as InnerException.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Pantheon (>= 1.0.3)
- Pantheon.Common (>= 1.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.3 | 53 | 11/24/2026 |