Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AppAction registration helpers. #3009

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Add AppAction registration helpers. #3009

merged 1 commit into from
Nov 17, 2023

Conversation

dansiegel
Copy link
Member

Description of Change

Add App Action helpers for Prism. This helps shortcut some of the overhead that you would need when trying to provide a callback such as ensuring this runs on the UI Thread, getting the INavigationService and optionally also the IContainerProvider if you need to resolve additional services as part of the App Action callback.

Bugs Fixed

  • n/a

API Changes

Added:

  • static PrismAppBuilder ConfigureViewTypeToViewModelTypeResolver(this PrismAppBuilder builder, Func<Type, Type> viewModelTypeResolver)
  • static PrismAppBuilder RegisterAppAction(this PrismAppBuilder builder, AppAction appAction, Func<IContainerProvider, INavigationService, AppAction, Task> callback)
  • static PrismAppBuilder RegisterAppAction(this PrismAppBuilder builder, AppAction appAction, Func<INavigationService, AppAction, Task> callback)

@dansiegel dansiegel added this to the Prism 9.0 milestone Nov 17, 2023
@dansiegel dansiegel merged commit 763eb88 into master Nov 17, 2023
3 checks passed
@brianlagunas brianlagunas deleted the dev/ds/app-actions branch November 17, 2023 19:26
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants