Skip to content

Commit

Permalink
updating for v8 api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Aug 28, 2020
1 parent f13c072 commit 122d3fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 44 deletions.
39 changes: 0 additions & 39 deletions src/Prism.Container.Extensions/ContainerExtensionAttribute.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public ExtendedPageBehaviorFactory(IPageBehaviorFactoryOptions options)
_options = options;
}

public override void ApplyTabbedPageBehaviors(TabbedPage page)
protected override void ApplyTabbedPageBehaviors(TabbedPage page)
{
base.ApplyTabbedPageBehaviors(page);

Expand All @@ -37,7 +37,7 @@ public override void ApplyTabbedPageBehaviors(TabbedPage page)
}
}

public override void ApplyPageBehaviors(Page page)
protected override void ApplyPageBehaviors(Page page)
{
base.ApplyPageBehaviors(page);

Expand All @@ -47,7 +47,7 @@ public override void ApplyPageBehaviors(Page page)
}
}

public override void ApplyNavigationPageBehaviors(NavigationPage page)
protected override void ApplyNavigationPageBehaviors(NavigationPage page)
{
base.ApplyNavigationPageBehaviors(page);

Expand Down
3 changes: 1 addition & 2 deletions src/Prism.Forms.Extended/PrismApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using Xamarin.Forms;
using Xamarin.Forms.Internals;

[assembly: Prism.Container.Extensions.Preserve]
[assembly: InternalsVisibleTo("Prism.DryIoc.Forms.Extended.Tests")]
[assembly: InternalsVisibleTo("Prism.Microsoft.DependencyInjection.Forms.Extended.Tests")]
[assembly: InternalsVisibleTo("Prism.Unity.Forms.Extended.Tests")]
Expand Down Expand Up @@ -51,7 +50,7 @@ protected override sealed void RegisterRequiredTypes(IContainerRegistry containe

protected override IContainerExtension CreateContainerExtension()
{
return ContainerLocator.Locate();
return ContainerLocator.Current ?? throw new NullReferenceException("Call PrismContainerExtension.Init() prior to initializing PrismApplication");
}

protected virtual void ConfigureAggregateLogger(IAggregateLogger aggregateLogger, IContainerProvider container)
Expand Down

0 comments on commit 122d3fa

Please sign in to comment.