NetworkInspector.Plugins.Registry
0.23.0
dotnet add package NetworkInspector.Plugins.Registry --version 0.23.0
NuGet\Install-Package NetworkInspector.Plugins.Registry -Version 0.23.0
<PackageReference Include="NetworkInspector.Plugins.Registry" Version="0.23.0" />
<PackageVersion Include="NetworkInspector.Plugins.Registry" Version="0.23.0" />
<PackageReference Include="NetworkInspector.Plugins.Registry" />
paket add NetworkInspector.Plugins.Registry --version 0.23.0
#r "nuget: NetworkInspector.Plugins.Registry, 0.23.0"
#:package NetworkInspector.Plugins.Registry@0.23.0
#addin nuget:?package=NetworkInspector.Plugins.Registry&version=0.23.0
#tool nuget:?package=NetworkInspector.Plugins.Registry&version=0.23.0
NetworkInspector.Plugins.Registry
Network Inspector's store of plugin contributions: the staging builder each plugin configures, the stack contributions, plugin settings, source kinds, and export formats it publishes, and the target rules every export runner applies. The generic loader (NetworkInspector.Plugins.Loader) finds, loads, and runs plugins; this package is what Network Inspector does with them.
Quickstart
// The registry publishes what the plugins of the kind networkinspector contribute; the built-ins add the standard sources.
using PluginRegistry registry = new();
PluginKind kind = NetworkInspectorPlugins.Kind(registry);
using SettingsManager application = new();
PluginLimits.Register(application);
PluginLoader loader = new(new PluginLoaderOptions(cacheFile, "My Analyzer", new SemanticVersion(1, 0, 0), [kind],
NetworkInspectorBuiltIns.Types, new PluginLoaderLimits(application.GetLiveLimit(PluginLimits.MetadataSize.Key)!,
application.GetLiveLimit(PluginLimits.CallTimeout.Key)!), PluginLimitTexts.WithChangeHint(static _ => "Change it in the settings.")));
PluginLoadReport report = await loader.LoadAsync(loader.Scan([], CancellationToken.None), CancellationToken.None);
bool hasFiles = registry.TryGetSource("pcapng", out _, out _);
cacheFile is the scan cache of the application (any writable path). The full flow with plugin folders, settings, a stack,
start, and stop is the loader quickstart.
What the package contains
| Type | Role |
|---|---|
PluginRegistry |
The published contributions: Sources, FrameExporters, PacketExporters, TryGetSource, TryGetFrameExporter, TryGetPacketExporter, ApplyStackContributions, ApplySettings, Disable |
NetworkInspectorPlugins |
Kind(registry): the plugin kind networkinspector for PluginLoaderOptions.Kinds; each plugin gets a staging builder of the registry |
NetworkInspectorContributionKinds |
The contribution kinds Network Inspector records, in the order ni plugins list prints them |
PluginContributionFailure |
A contribution that threw while it was applied to a real stack or settings manager |
RegistrationOptions |
Option managers of a source or format from defaults and key=value texts, with Core validation; the overload with a stored-limit lookup seeds every limit option from the stored limit of the same key, and an option text still overrides it |
ExportTargets, TargetReplacement |
Target rules every export runner applies: full path, parent folder, refused overwrite, an existing output moved aside until the new one is complete, cleanup of a partial output |
Thread safety
PluginRegistry publishes one consistent snapshot for readers and is safe to read from any thread; Disable and the apply
methods are meant for the application's composition thread.
| 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
- InvariantStringHelper (>= 1.0.0)
- NetworkInspector.Plugins (>= 0.23.0)
- NetworkInspector.Plugins.Loader (>= 0.23.0)
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 |
|---|---|---|
| 0.23.0 | 0 | 11/26/2026 |