Skip to content

WinUIReactiveUIBuilderExtensions.WithWinUIScheduler(IReactiveUIBuilder) method

Defined in

Type: WinUIReactiveUIBuilderExtensions Namespace: ReactiveUI.Builder Assembly: ReactiveUI.WinUI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041

public static IReactiveUIBuilder WithWinUIScheduler(this IReactiveUIBuilder builder)

View source

Summary: Configures the builder to use the WinUI main thread scheduler for reactive operations.

Parameters

NameTypeDescription
builder[IReactiveUIBuilder](#The builder to configure with the WinUI main thread scheduler. Cannot be null.

Returns: IReactiveUIBuilder -- The same builder instance configured to use the WinUI main thread scheduler.

Remarks

Use this method when building reactive applications targeting WinUI to ensure that main thread operations are scheduled appropriately for the WinUI environment.