Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

issue with await #26

Closed
gseame opened this issue Apr 12, 2018 · 1 comment
Closed

issue with await #26

gseame opened this issue Apr 12, 2018 · 1 comment

Comments

@gseame
Copy link

gseame commented Apr 12, 2018

Hi, I've installed via nugget into an Umbraco 7 project. However, I've received the following error:
Error CS4033 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'.

for line: Forecast result = await client.GetWeatherDataAsync(37.8267, -122.423);

(I am following your Quick start guide)
Any ideas how to resolve this error?

@jcheng31
Copy link
Owner

Hey - you'll need to add async to the signature of the method you're calling it from. I'm not familiar with Umbraco, though, so I'm not sure if it plays well with async methods.

@jcheng31 jcheng31 closed this as completed Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants