zcz527 / autofac

Automatically exported from code.google.com/p/autofac
Other
0 stars 0 forks source link

Add support for Windows Phone 7.1 using Microsoft.Bcl.Async #434

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is it possible to make AutoFac for PCL profile that supports WP71 by leveraging 
Microsoft.Bcl.Async?

Original issue reported on code.google.com by Andrii.C...@gmail.com on 16 May 2013 at 3:19

GoogleCodeExporter commented 8 years ago

Original comment by travis.illig on 28 May 2013 at 4:12

GoogleCodeExporter commented 8 years ago
The purpose of Microsoft.Bcl.Async is to allow previously unsupported platforms 
to use the async and await keywords.

Autofac core doesn't actually have any uses of async/await, so this library 
won't help bridge the missing platform gaps required for the older platform.

Unfortunately, Windows Phone 7 doesn't support some of the other features like 
[AllowPartiallyTrustedCallers] that newer platforms support, nor does it 
support covariant generic interfaces (IRegistrationBuilder<out TLimit, out 
TActivatorData, out TRegistrationStyle>). We need that on the newer platforms 
and part of the reason for moving to PCL was to avoid the #if conditionally 
included code or compiling/testing against different specific platforms.

As such, I don't think we'll be able to add the support for WP 7.1. Sorry.

Original comment by travis.illig on 28 May 2013 at 4:47