Skip to content

VerificationOptions

NexusLabs.Needlr

NexusLabs.Needlr

VerificationOptions Class

Options for controlling container verification behavior.

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

Inheritance System.Object 🡒 VerificationOptions

Implements System.IEquatable<VerificationOptions>

Properties

VerificationOptions.CircularDependencyBehavior Property

Gets or sets the behavior when circular dependencies are detected. Default is Throw.

public NexusLabs.Needlr.VerificationBehavior CircularDependencyBehavior { get; init; }

Property Value

VerificationBehavior

VerificationOptions.Default Property

Default verification options - warns on lifetime mismatches, throws on circular dependencies.

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

Property Value

VerificationOptions

VerificationOptions.Disabled Property

Disabled verification - no checks performed.

public static NexusLabs.Needlr.VerificationOptions Disabled { get; }

Property Value

VerificationOptions

VerificationOptions.IssueReporter Property

Gets or sets a callback for reporting verification issues. If null, issues are written to Console.Error.

public System.Action<NexusLabs.Needlr.VerificationIssue>? IssueReporter { get; init; }

Property Value

System.Action<VerificationIssue>

VerificationOptions.LifetimeMismatchBehavior Property

Gets or sets the behavior when lifetime mismatches are detected. Default is Warn.

public NexusLabs.Needlr.VerificationBehavior LifetimeMismatchBehavior { get; init; }

Property Value

VerificationBehavior

VerificationOptions.Strict Property

Strict verification options - throws on any verification issue.

public static NexusLabs.Needlr.VerificationOptions Strict { get; }

Property Value

VerificationOptions