Microsoft   |   patterns & practices   |   Developer Network   |   Enterprise Library   |   Acceptance Testing Guide   |   Personal Site

Unity DI Container now supports Windows Phone - Grigori Melnik: Thoughts on Agile Software Engineering and Beyond - Site Home - MSDN Blogs

Unity DI Container now supports Windows Phone

Unity DI Container now supports Windows Phone

  • Comments 9

Upon numerous requests from Unity users, we have ported Unity DI Container to Windows Phone 8. The Unity NuGet package has been updated as follows:

  • The .NET version of Unity remains intact.
  • The NetCore version (for Windows Store apps) was recompiled, because there was a small change needed to have code parity with Windows Phone - we rebuilt it for the symbols to match the source code.
  • The WP8 version is new.

unity

Happy coding!

- Grigori

Comments
  • Really appreciate you guys getting this done.

  • @jfc

    Glad you are finding this useful. Please keep engaging with my team (Microsoft patterns & practices) on other things you need help with.

    Grigori

  • Ahhh, might have to switch over from Castle Windsor. How is performance on WP8?

  • David, hi

    We ran our perf tests and are pretty happy with the results.

    Grigori

  • cool, any code examples?

    greetings Damien

  • @Damien,

    See the new Dev Guide (www.microsoft.com/.../details.aspx) and a set of Hands-on Labs (www.microsoft.com/.../details.aspx).

  • This is great. In general I tend to use the SimpleContainer in Caliburn Micro as I don't usually have a need for anything much more complex, however I do like Unity, so I may make the jump.

    What I would love to see is a Nuget package containing a PCL version. I'm still targetting WP7.5 for some customers and I would love to have a central container in a common bootstrapping assembly that I can use across all platforms.

  • Now we have one part support from prism in windows phone,

    Question1 - Can we use the same for windows 8 store apps?

    Question2 - Can we have some performance results comparing with other containers like autofac, nijnect?

  • @Kasi3

    1) Yes, you can now use both Unity and Prism for Windows 8 store apps - prismwindowsruntime.codeplex.com.

    2) We don't publish results of our tests. I can assure we do them as a part of our development & release lifecycle and our results gave us enough confidence to move on with a public release. When it comes to perf, my recommendation is always to do your own perf assessments since they very much depend on specific scenarios. Be watchful when reviewing other people's perf numbers - the empirical testing methodologies often suffer from validity threats. One common mistake, for example, is discarding and configuring a new container for every resolve operation.

Page 1 of 1 (9 items)
Leave a Comment
  • Please add 3 and 8 and type the answer here:
  • Post