Skip to content

Applies to

net10.0, net9.0, net8.0, net462, net481

public IAppBuilder WithCustomRegistration(Action<IMutableDependencyResolver> configureAction)

View source

Summary: Adds a custom dependency registration action to the application builder.

Parameters

NameTypeDescription
configureActionActionAn action that receives an [IMutableDependencyResolver](# and performs custom service registrations. Cannot be null.

Returns: IAppBuilder -- The current IAppBuilder instance, enabling method chaining.

Remarks

Use this method to register additional services or override default registrations in the application's dependency resolver before the application is built.