Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

DependencyService と Prism.Ioc を混在して使用している #45

Closed
ghost opened this issue Mar 7, 2021 · 0 comments · Fixed by #308
Closed

DependencyService と Prism.Ioc を混在して使用している #45

ghost opened this issue Mar 7, 2021 · 0 comments · Fixed by #308
Labels
confirmed 開発内部管理用 enhancement 新しい機能や改善のリクエスト

Comments

@ghost
Copy link

ghost commented Mar 7, 2021

Describe the bug
現状のソースではサービスロケータ/DIコンテナとして Xamarin.Forms の DependencyService と Prism.Ioc を混在して使用しています。

ですが、#25, #30 で議論されたように、Android の Service, Receiver が起動された場合 App.xaml.cs が初期化されないため
DependencyService が正しく動作しません。

また、DI コンテナを混在して使用する必然性はなく、Prism でも Prism7 以降では DependencyService との互換機能は削除すると記載があり古い機能という位置づけです(Prism has dropped all support for working with the DependencyService as of Prism 7.0.)
https://prismlibrary.com/docs/dependency-injection/platform-specific-services.html

Additional context
#22 では Prism 8.0 への更新を含んでいますので、その準備のためにも必要になる対応ではないかと想定しています。

Internal IDs:

  • NFR 2586
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
confirmed 開発内部管理用 enhancement 新しい機能や改善のリクエスト
Projects
None yet
2 participants