Skip to content

AppBuilder.UseCurrentSplatLocator() method

Defined in

Type: AppBuilder Namespace: Splat.Builder Assembly: Splat.Builder.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

public IAppBuilder UseCurrentSplatLocator()

View source

Summary: Configures the application to use the current Splat service locator (AppLocator.CurrentMutable) for dependency resolution.

Returns: IAppBuilder -- The current IAppBuilder instance. This enables method chaining.

Remarks

This method sets the resolver and service provider delegates to use the current Splat AppLocator. Use this method when you want the application to resolve dependencies using the global Splat locator, which may be shared across different parts of the application. This is useful when configuring an external container (e.g., Autofac, DryIoc, Microsoft.Extensions.DependencyInjection) as the Splat dependency resolver prior to applying Splat registrations.