ReactiveUIBuilder.WithRegistration(Action) method¶
Defined in
Type: ReactiveUIBuilder
Namespace: ReactiveUI.Reactive.Builder
Assembly: ReactiveUI.Reactive.dll
Applies to
net10.0, net10.0-ios26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-macos26.0, net10.0-tvos26.0, net9.0, net8.0, net462, net481
Overloads¶
-
public IReactiveUIBuilder WithRegistration(Action<IMutableDependencyResolver> configureAction) -
public IReactiveUIBuilder WithRegistration(IWantsToRegisterStuff registration)
1. Overload¶
public IReactiveUIBuilder WithRegistration(Action<IMutableDependencyResolver> configureAction)
Summary: Adds a custom ReactiveUI registration action.
Parameters
| Name | Type | Description |
|---|---|---|
configureAction | Action | The configuration action. |
Returns: IReactiveUIBuilder -- The builder instance for chaining.
2. Overload¶
public IReactiveUIBuilder WithRegistration(IWantsToRegisterStuff registration)
Summary: Registers services using an IWantsToRegisterStuff implementation. This method provides a migration path for users with existing IWantsToRegisterStuff implementations.
Parameters
| Name | Type | Description |
|---|---|---|
registration | [IWantsToRegisterStuff](# | The registration implementation. |
Returns: IReactiveUIBuilder -- The builder instance for chaining.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if registration is null. |