Answered .NET 4.5 beta INotifyCompletion error

  • Sunday, March 04, 2012 3:50 AM
     
     

    After installing Visual Studio 2012 beta and nuget package "<package id="Rx_Experimental-Main" version="1.1.11111" />"
    XXXAsync method has the following error.

    ex) var first = await Observable.Range(1, 100).FirstOrDefaultAsync();

    The error message Is :

    //Error 2 'System.Reactive.Subjects.AsyncSubject<int>' does not implement 'System.Runtime.CompilerServices.INotifyCompletion' C:\Users\kap\Documents\Visual Studio 11\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs 20 25 ConsoleApplication1






All Replies

  • Sunday, March 04, 2012 5:44 AM
     
     Answered

    Hi,

    The awaitable pattern has changed in .NET 4.5 and a compatible version of Rx has not been released yet.

    See the Await Pattern section of this blog post for more info:

    http://blogs.msdn.com/b/pfxteam/archive/2012/02/29/10274035.aspx

    - Dave


    http://davesexton.com/blog

    • Marked As Answer by KapRyeong kim Sunday, March 04, 2012 6:06 PM
    •  
  • Tuesday, March 06, 2012 6:01 AM
    Owner
     
     
    We've shipped Rx v2.0 Beta today and will post more details tomorrow. To solve your problem, try installing the pre-release package of Rx-Main using the instructions shown here: https://nuget.org/packages/Rx-Main/2.0.20304-beta. Also read this thread for more general notes about this release and how to use it from NuGet and with the SDK installer.

    using (Microsoft.Sql.Cloud.DataProgrammability.Rx) { Signature.Emit("Bart De Smet"); }

  • Saturday, May 19, 2012 8:02 AM
     
     

    After installing Visual Studio 2012 beta

    Visual Studio 11 beta ?

  • Monday, May 28, 2012 8:52 AM
    Owner
     
     
    Final naming of the Visual Studio 11 product hasn't been announced yet :-). So, yes, it seems that "KapRyeong kim" made a naming prediction when posting this question.

    using (Microsoft.Sql.Cloud.DataProgrammability.Rx) { Signature.Emit("Bart De Smet"); }