Class SplatBuilderExtensions
Common extension helpers for registering Splat modules.
public static class SplatBuilderExtensions
- Inheritance
-
SplatBuilderExtensions
Methods
Apply(IModule)
Runs the provided configuration action immediately and configures the specified module using the current mutable application locator.
public static void Apply(this IModule module)
Parameters
moduleIModuleThe module to configure. Cannot be null.
CreateSplatBuilder(IMutableDependencyResolver)
Creates a new application builder that uses the specified dependency resolver.
public static IAppBuilder CreateSplatBuilder(this IMutableDependencyResolver resolver)
Parameters
resolverIMutableDependencyResolverThe dependency resolver to use for resolving services and dependencies. Cannot be null.
Returns
- IAppBuilder
An IAppBuilder instance configured with the specified dependency resolver.
CreateSplatBuilder(IMutableDependencyResolver, Action<IMutableDependencyResolver>)
Creates a new application builder using the specified dependency resolver and applies custom configuration.
public static IAppBuilder CreateSplatBuilder(this IMutableDependencyResolver resolver, Action<IMutableDependencyResolver> configureAction)
Parameters
resolverIMutableDependencyResolverThe dependency resolver to use for service registration and resolution. Cannot be null.
configureActionAction<IMutableDependencyResolver>An action that configures additional registrations on the dependency resolver. Can be null if no custom configuration is required.
Returns
- IAppBuilder
An IAppBuilder instance configured with the specified resolver and custom registrations.