try
{
var login = ToServiceLogin(lgParameters);
await Task.Factory.FromAsync(loginOperation.BeginLogin,
loginOperation.EndLogin, lgParameters, TaskCreationOptions.None);
}
catch (FaultException fe)
{
Debug.WriteLine(@" {0}", fe.Message);
}
catch (Exception ex)
{
Debug.WriteLine(@" ERROR {0}", ex.Message);
}
Compile error occurs on the first parameter of Task.Factory.FromAsync
. I've read up on a couple of threads regarding similar issue none seems to be helping they all refer to this having a different signature. Please point me to the right direction.
EDIT With Signature
BeginLogin Signature
IAsyncResult BeginLogin(PRPClockingXamarin.PRPServiceMobile.LoginParameters loginParams,
AsyncCallback callback, object asyncState);