Class AppBuilder
A builder class for configuring ReactiveUI without using reflection. This provides an AOT-compatible alternative to the reflection-based InitializeReactiveUI method.
- Inheritance
-
App
Builder
- Extension Methods
Constructors
AppBuilder(IMutableDependencyResolver)
Initializes a new instance of the App
Parameters
resolver
IMutableDependency Resolver The dependency resolver to configure.
Properties
HasBeenBuilt
Gets a value indicating whether this instance has been built.
Property Value
- bool
true
if this instance has been built; otherwise,false
.
UsingBuilder
Gets a value indicating whether [using builder].
Property Value
- bool
true
if [using builder]; otherwise,false
.
Methods
Build()
Builds and applies all registrations to the dependency resolver.
ResetBuilderStateForTests()
Resets the builder state for tests, ONLY if the builder is being used in a unit test environment.
UseCurrentSplatLocator()
Direct the builder to use the current Splat Locator (Locator.CurrentMutable) for subsequent registrations. This is useful when configuring an external container (e.g., Autofac, DryIoc, Microsoft.Extensions.DependencyInjection) as the Splat dependency resolver prior to applying ReactiveUI registrations.
Returns
- App
Builder The builder instance for chaining.
UsingModule<T>(T)
Using the splat module.
Parameters
registrationModule
TThe registration module to add.
Returns
- App
Builder The builder instance for method chaining.
Type Parameters
T
The Splat Module Type.
WithCoreServices()
Registers the core ReactiveUI services.
Returns
- App
Builder The builder instance for method chaining.
WithCustomRegistration(Action<IMutableDependencyResolver>)
Registers a custom registration action.
Parameters
configureAction
Action<IMutableDependency >Resolver The configuration action to add.
Returns
- App
Builder The builder instance for method chaining.