コード例 #1
0
 /// <summary>
 /// Get all sources.
 /// </summary>
 /// <returns>A list of sources</returns>
 public async Task <List <Source> > FindSourcesAsync()
 {
     return((await _service.GetSourcesAsync())._Sources);
 }
コード例 #2
0
 /// <summary>
 /// Get all sources.
 /// </summary>
 /// <returns>A list of sources</returns>
 public async Task <List <Source> > FindSources()
 {
     return(await _service.GetSourcesAsync().ContinueWith(t => t.Result._Sources));
 }
コード例 #3
0
        /// <summary>
        /// Get all sources.
        /// </summary>
        /// <returns>A list of sources</returns>
        public async Task <List <Source> > FindSourcesAsync()
        {
            var response = await _service.GetSourcesAsync().ConfigureAwait(false);

            return(response._Sources);
        }