Skip to content

DumpOptions

NexusLabs.Needlr

NexusLabs.Needlr

DumpOptions Class

Options for customizing the output of Dump(this IServiceCollection, DumpOptions).

public sealed record DumpOptions : System.IEquatable<NexusLabs.Needlr.DumpOptions>

Inheritance System.Object 🡒 DumpOptions

Implements System.IEquatable<DumpOptions>

Properties

DumpOptions.Default Property

Gets the default dump options with no filtering.

public static NexusLabs.Needlr.DumpOptions Default { get; }

Property Value

DumpOptions

DumpOptions.GroupByLifetime Property

Gets or sets whether to group registrations by lifetime in the output. Default is false.

public bool GroupByLifetime { get; init; }

Property Value

System.Boolean

DumpOptions.LifetimeFilter Property

Gets or sets an optional filter to only include services with a specific lifetime. When null, all lifetimes are included.

public System.Nullable<Microsoft.Extensions.DependencyInjection.ServiceLifetime> LifetimeFilter { get; init; }

Property Value

System.Nullable<Microsoft.Extensions.DependencyInjection.ServiceLifetime>

DumpOptions.ServiceTypeFilter Property

Gets or sets an optional predicate to filter services by their service type. When null, all service types are included.

public System.Func<System.Type,bool>? ServiceTypeFilter { get; init; }

Property Value

System.Func<System.Type,System.Boolean>