Too many arguments in BeginXXX for FromAsync?
I have an async method with the following signature: IAsyncResult BeginGetMyNumber(string foo, string bar, string bat, int bam, AsyncCallback callback, object state) I want to execute it using Factory.FromAsync like this: var result = Task<int>.Factory.FromAsync( instance.BeginGetMyNumber, instance.EndGetMyNumber, "foo", "bar", "bat", 100, /*bam*/ null); but I get the following error: Argument 1: cannot convert from 'method group' to 'System.Func' It seems there is no suitable overloaded FromAsync method http://msdn.microsoft.com/en-us/library/system.threading.tasks.taskfactory.fromasync.aspx