I have an async method with the following signature:
IAsyncResult BeginGetMyNumber(string foo, string bar, string bat, int bam, AsyncCallback callback, object s
result = Task.Factory.FromAsync( (callback, state) => instance.BeginGetMyNumber("foo", "bar", "bat", 1, callback, state), instance.EndGetMyNumber, state: null);
This technique (partial function application) works for begin methods with any number of input params.