K
KBid
Guest
Hi,
I am a newbie in this:
I want to consume a wcf service in my xamarin forms project. The method that i want to call, reurns a custom object:
public DossierProxy GetDossier(int number)
{
return new DossierProxy { Number = 1 };
}
In my client app when i call this method:
ICustomerPortalService serviceClient = App.CustomerPortalServiceClient;
DossierProxy dp = await GetData();
I am getting this error:
The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task'.
Some help with this would be great!
Thanks in advance.
Continue reading...
I am a newbie in this:
I want to consume a wcf service in my xamarin forms project. The method that i want to call, reurns a custom object:
public DossierProxy GetDossier(int number)
{
return new DossierProxy { Number = 1 };
}
In my client app when i call this method:
ICustomerPortalService serviceClient = App.CustomerPortalServiceClient;
DossierProxy dp = await GetData();
I am getting this error:
The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task'.
Some help with this would be great!
Thanks in advance.
Continue reading...