コード例 #1
0
 public async Task <IEnumerable <Session> > DownloadConferenceData(CancellationToken cancellationToken)
 {
     return(await transientApiErrorPolicy
            .ExecuteAsync(async() =>
     {
         Debug.WriteLine("Trying service call...");
         return await conferenceApi.GetSessions().ConfigureAwait(false);
     }));
 }