xamarin-docs
xamarin-docs copied to clipboard
Is using DependencyService for regular IoC the recommended approach or not?
I take the DependencyService
is responsible for exposing platform-specific implementations to the client app at runtime.
But can the same container be used to register platform agnostic services just for IoC's sake? The docs don't elaborate on that and there appears to be no alternative given.
Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 6e9eecf7-0edb-5b24-964c-a1ae2e7556ba
- Version Independent ID: 8f9243b4-0f7c-6aac-39e2-913173ea472a
- Content: Xamarin.Forms DependencyService Introduction - Xamarin
- Content Source: docs/xamarin-forms/app-fundamentals/dependency-service/introduction.md
- Product: xamarin
- Technology: xamarin-forms
- GitHub Login: @davidbritch
- Microsoft Alias: dabritch