/// <summary>
 /// List all organizations.
 /// </summary>
 /// <returns>List all organizations</returns>
 public async Task <List <Organization> > FindOrganizationsAsync()
 {
     return(await _service.GetOrgsAsync().ContinueWith(t => t.Result.Orgs));
 }
示例#2
0
        /// <summary>
        /// List all organizations.
        /// </summary>
        /// <param name="limit"> (optional, default to 20)</param>
        /// <returns>List all organizations</returns>
        public async Task <List <Organization> > FindOrganizationsAsync(int?limit = null)
        {
            var response = await _service.GetOrgsAsync(limit : limit).ConfigureAwait(false);

            return(response.Orgs);
        }
示例#3
0
 /// <summary>
 /// List all organizations.
 /// </summary>
 /// <returns>List all organizations</returns>
 public async Task <List <Organization> > FindOrganizationsAsync()
 {
     return((await _service.GetOrgsAsync()).Orgs);
 }
 /// <summary>
 /// List all organizations.
 /// </summary>
 /// <param name="limit"> (optional, default to 20)</param>
 /// <returns>List all organizations</returns>
 public async Task <List <Organization> > FindOrganizationsAsync(int?limit = null)
 {
     return((await _service.GetOrgsAsync(limit: limit)).Orgs);
 }