Skip to content

Commit

Permalink
Merge pull request #631 from Bartmax/patch-1
Browse files Browse the repository at this point in the history
Update README using async void to async Task.
  • Loading branch information
Oren Novotny authored Mar 7, 2019
2 parents d56caf8 + ea66fe1 commit ec3d6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class LoginViewModel
return token;
}

public async void LoginAndCallApi()
public async Task LoginAndCallApi()
{
var api = RestService.For<IMyRestService>(new HttpClient(new AuthenticatedHttpClientHandler(GetToken)) { BaseAddress = new Uri("https://the.end.point/") });
var location = await api.GetLocationOfRebelBase();
Expand Down

0 comments on commit ec3d6c3

Please sign in to comment.