public Task <IStorageListResult> ListAsync(long maxResults) { var tcs = new TaskCompletionSource <IStorageListResult>(); _wrapped.List(maxResults, (listResult, error) => { if (error == null) { tcs.SetResult(listResult.ToAbstract()); } else { tcs.SetException(new FirebaseException(error.LocalizedDescription)); } }); return(tcs.Task); }
public async Task <IStorageListResult> ListAsync(long maxResults) { return((await _wrapped.List((int)maxResults).AsAsync <ListResult>()).ToAbstract()); }