DumpExtensions
NexusLabs.Needlr¶
NexusLabs.Needlr¶
DumpExtensions Class¶
Extension methods for dumping service registration information for debugging.
Inheritance System.Object 🡒 DumpExtensions
Methods¶
DumpExtensions.Dump(this IServiceCollection, DumpOptions) Method¶
Returns a formatted string representation of all service registrations in the service collection for debugging purposes.
public static string Dump(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, NexusLabs.Needlr.DumpOptions? options=null);
Parameters¶
services Microsoft.Extensions.DependencyInjection.IServiceCollection
The service collection to dump.
options DumpOptions
Optional dump options for filtering and formatting.
Returns¶
System.String
A formatted string with registration details.
Exceptions¶
System.ArgumentNullException
Thrown when services is null.
DumpExtensions.Dump(this IServiceProvider, DumpOptions) Method¶
Returns a formatted string representation of all service registrations in the service provider for debugging purposes.
public static string Dump(this System.IServiceProvider serviceProvider, NexusLabs.Needlr.DumpOptions? options=null);
Parameters¶
serviceProvider System.IServiceProvider
The service provider to dump.
options DumpOptions
Optional dump options for filtering and formatting.
Returns¶
System.String
A formatted string with registration details.
Exceptions¶
System.ArgumentNullException
Thrown when serviceProvider is null.
System.InvalidOperationException
Thrown when the service collection is not accessible.