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

Create new Bootstrapper API #2074

Merged
merged 4 commits into from
Apr 21, 2020
Merged

Create new Bootstrapper API #2074

merged 4 commits into from
Apr 21, 2020

Conversation

brianlagunas
Copy link
Member

Description of Change

implemented a new bootstrapper API to replace the old legacy bootstrapper.

Bugs Fixed

API Changes

Added:

  • PrismBootstrapperBase
  • PrismBootstrapper (container specific)

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard

src/Wpf/Prism.DryIoc.Wpf/PrismBootstrapper.cs Show resolved Hide resolved
Comment on lines 31 to 32


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should really be a single line of empty space

Comment on lines 33 to 46
public void Run()
{
InitializeInternal();
}

/// <summary>
/// Run the initialization process.
/// </summary>
void InitializeInternal()
{
ConfigureViewModelLocator();
Initialize();
OnInitialized();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems silly to me... really InitializeInternal is the Run... don't really see a point to having a public Run that is only calling an InitializeInternal

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really just for consistency between the two approaches.

Comment on lines 166 to 168
regionAdapterMappings.RegisterMapping(typeof(Selector), _containerExtension.Resolve<SelectorRegionAdapter>());
regionAdapterMappings.RegisterMapping(typeof(ItemsControl), _containerExtension.Resolve<ItemsControlRegionAdapter>());
regionAdapterMappings.RegisterMapping(typeof(ContentControl), _containerExtension.Resolve<ContentControlRegionAdapter>());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be updated...

regionAdapterMappings.RegisterMapping<Selector, SelectorRegionAdapter>();

Copy link
Member

@dansiegel dansiegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks so purty

@dansiegel dansiegel merged commit 4a109d6 into master Apr 21, 2020
@dansiegel dansiegel deleted the bootstrapper-api branch April 21, 2020 23:05
@dansiegel dansiegel added this to the Prism 8.0 milestone Apr 22, 2020
@lock
Copy link

lock bot commented May 6, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants