public Task Authenticate (string token) { this.AuthToken = token; var tcs = new TaskCompletionSource<bool>(); tcs.SetResult(true); return tcs.Task; } }
public bool Authenticate(string userName, string password) { return(_rawClient.Authenticate(userName, password).Result); }