इसके माध्यम से साझा किया गया


Appendix A - Unity and Windows Store apps

patterns & practices Developer Center

On this page: Download:
The UnityServiceLocator Class | Unity Design-time Configuration | Unity Interception

Download code

Download PDF File

Order Paperback

When you create applications for Windows 8, those applications are known as Windows Store apps. You can develop Windows Store apps using C#, Visual Basic, JavaScript, and C++.

You can use Unity when you develop Windows Store apps using C# and Visual Basic. However, there are some limitations in the functionality of the version of Unity that targets the .NET for Windows Store apps version of the .NET Framework; this appendix describes those limitations.

The UnityServiceLocator Class

You cannot use the Microsoft.Practices.Unity.UnityServiceLocator class with the .NET for Windows Store apps version of the .NET Framework. This class depends on the Common Service Locator library, which is not available for Windows Store apps.

Unity Design-time Configuration

You cannot configure your Unity container using a configuration file such as app.config. Windows Store apps must configure Unity containers programmatically.

This is because the Unity.Configuration assembly is not compatible with Windows Store apps.

Unity Interception

Unity Interception is not available to Windows Store apps.

This is because the Unity.Interception and Unity.Interception.Configuration assemblies are not compatible with Windows Store apps.

Next Topic | Previous Topic | Home | Community