Skip to content

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

public IAppBuilder WithCustomRegistration(Action<IMutableDependencyResolver> configureAction)

View source (opens in a new tab)

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

Parameters

NameTypeDescription
configureActionAction (opens in a new tab)An action that receives an [IMutableDependencyResolver](#Splat.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.