예제 #1
0
 public async Task DeleteAsync(CassandraRole role)
 {
     Exception ex = null;
     await TryWithAwaitInCatch.ExecuteAndHandleErrorAsync(
         async() =>
     {
         await EstablishSession();
         await _resilientSession.DeleteAsync(role);
     },
         async (e) =>
     {
         ex = e;
         return(new TryWithAwaitInCatchExcpetionHandleResult <Task>
         {
             RethrowException = true
         });
     }
         );
 }