Esempio n. 1
0
 private static void UpdateVariantPriority(int variantID, string action)
 {
     try
     {
         using (_certonaService = new CertonaServiceClient())
         {
             try
             {
                 UserDTO user    = FormsAuthenticationWrapper.User;
                 var     request = new UpdateVariantPriorityRequest()
                 {
                     User = user, VariantID = variantID, Direction = action
                 };
                 var response = _certonaService.UpdateVariantPriority(request);
             }
             catch (TimeoutException exception)
             {
                 _certonaService.Abort();
                 throw;
             }
             catch (CommunicationException exception)
             {
                 _certonaService.Abort();
                 throw;
             }
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }