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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetworkInspector.Plugins.Registry" Version="0.23.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetworkInspector.Plugins.Registry" Version="0.23.0" />
                    
Directory.Packages.props
<PackageReference Include="NetworkInspector.Plugins.Registry" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NetworkInspector.Plugins.Registry --version 0.23.0
                    
#r "nuget: NetworkInspector.Plugins.Registry, 0.23.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NetworkInspector.Plugins.Registry@0.23.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NetworkInspector.Plugins.Registry&version=0.23.0
                    
Install as a Cake Addin
#tool nuget:?package=NetworkInspector.Plugins.Registry&version=0.23.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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