Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unnecessary async/await methods #7

Merged
merged 1 commit into from
Sep 26, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Com.Penrillian.Kinvey/IHttpContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public ProxyHttpContent(HttpContent content)
Content = content;
}

public async Task<string> ReadAsStringAsync()
public Task<string> ReadAsStringAsync()
{
return await Content.ReadAsStringAsync();
return Content.ReadAsStringAsync();
}

public HttpContentHeaders Headers
Expand Down
24 changes: 12 additions & 12 deletions Com.Penrillian.Kinvey/KinveyUserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,40 +42,40 @@ private void InitClient()
_httpClient.BaseAddress = new Uri("https://baas.kinvey.com/");
}

public async Task<KinveyUser> LogIn(string username, string password)
public Task<KinveyUser> LogIn(string username, string password)
{
var uri = new Uri(string.Format("/user/{0}/login", KinveySettings.Get().AppKey), UriKind.Relative);
return await DoAuth(uri, username, password).ConfigureAwait(false);
return DoAuth(uri, username, password);
}

public async Task<KinveyUser> SignUp(string username, string password)
public Task<KinveyUser> SignUp(string username, string password)
{
var uri = new Uri(string.Format("/user/{0}/", KinveySettings.Get().AppKey), UriKind.Relative);
return await DoAuth(uri, username, password).ConfigureAwait(false);
return DoAuth(uri, username, password);
}

public async Task<KinveyFacebookUser> SignUp(FacebookIdentityToken socialIdentity)
public Task<KinveyFacebookUser> SignUp(FacebookIdentityToken socialIdentity)
{
var uri = new Uri(string.Format("/user/{0}/", KinveySettings.Get().AppKey), UriKind.Relative);
return await DoSocialAuth<KinveyFacebookUser, FacebookIdentity>(uri, socialIdentity).ConfigureAwait(false);
return DoSocialAuth<KinveyFacebookUser, FacebookIdentity>(uri, socialIdentity);
}

public async Task<KinveyTwitterUser> SignUp(TwitterIdentityToken socialIdentity)
public Task<KinveyTwitterUser> SignUp(TwitterIdentityToken socialIdentity)
{
var uri = new Uri(string.Format("/user/{0}/", KinveySettings.Get().AppKey), UriKind.Relative);
return await DoSocialAuth<KinveyTwitterUser, TwitterIdendity>(uri, socialIdentity).ConfigureAwait(false);
return DoSocialAuth<KinveyTwitterUser, TwitterIdendity>(uri, socialIdentity);
}

public async Task<KinveyGooglePlusUser> SignUp(GooglePlusIdentityToken socialIdentity)
public Task<KinveyGooglePlusUser> SignUp(GooglePlusIdentityToken socialIdentity)
{
var uri = new Uri(string.Format("/user/{0}/", KinveySettings.Get().AppKey), UriKind.Relative);
return await DoSocialAuth<KinveyGooglePlusUser, GooglePlusIdentity>(uri, socialIdentity).ConfigureAwait(false);
return DoSocialAuth<KinveyGooglePlusUser, GooglePlusIdentity>(uri, socialIdentity);
}

public async Task<KinveyLinkedInUser> SignUp(LinkedInIdentityToken socialIdentity)
public Task<KinveyLinkedInUser> SignUp(LinkedInIdentityToken socialIdentity)
{
var uri = new Uri(string.Format("/user/{0}/", KinveySettings.Get().AppKey), UriKind.Relative);
return await DoSocialAuth<KinveyLinkedInUser, LinkedInIdentity>(uri, socialIdentity).ConfigureAwait(false);
return DoSocialAuth<KinveyLinkedInUser, LinkedInIdentity>(uri, socialIdentity);
}

public async Task LogOut()
Expand Down