Esempio n. 1
0
 public async Task DeleteDocumentSet(int docSetId)
 {
     using (var t = new DocumentSetClient())
     {
         await t.DeleteDocumentSet(docSetId).ConfigureAwait(false);
     }
 }
Esempio n. 2
0
 public async Task CleanLines(int docSetId, IEnumerable <int> lst, bool perIM7)
 {
     using (var t = new DocumentSetClient())
     {
         await t.CleanLines(docSetId, lst, perIM7).ConfigureAwait(false);
     }
 }
Esempio n. 3
0
 public async Task BaseDataModelInitialize()
 {
     using (var t = new DocumentSetClient())
     {
         await t.BaseDataModelInitialize().ConfigureAwait(false);
     }
 }
Esempio n. 4
0
 public async Task CleanBond(int docSetId, bool perIM7)
 {
     using (var t = new DocumentSetClient())
     {
         await t.CleanBond(docSetId, perIM7).ConfigureAwait(false);
     }
 }
Esempio n. 5
0
        public async Task <AsycudaDocumentSetEx> NewDocumentSet()
        {
            using (var t = new DocumentSetClient())
            {
                var dto = await t.NewDocumentSet().ConfigureAwait(false);

                return(new AsycudaDocumentSetEx(dto));
            }
        }
Esempio n. 6
0
 public async Task DeleteDocuments(int docSetId)
 {
     try
     {
         using (var t = new DocumentSetClient())
         {
             await t.DeleteDocuments(docSetId).ConfigureAwait(false);
         }
     }
     catch (FaultException <ValidationFault> e)
     {
         throw new Exception(e.Detail.Message, e.InnerException);
     }
     catch (Exception ex)
     {
         Debugger.Break();
         throw;
     }
 }
Esempio n. 7
0
 public async Task SaveAsycudaDocumentSetEx(AsycudaDocumentSetEx asycudaDocumentSetEx)
 {
     try
     {
         using (var t = new DocumentSetClient())
         {
             await t.SaveAsycudaDocumentSetEx(asycudaDocumentSetEx.DTO).ConfigureAwait(false);
         }
     }
     catch (FaultException <ValidationFault> e)
     {
         throw new Exception(e.Detail.Message, e.InnerException);
     }
     catch (Exception ex)
     {
         Debugger.Break();
         throw;
     }
 }
Esempio n. 8
0
 public async Task ExportDocSet(int docSetId, string directoryName)
 {
     try
     {
         using (var t = new DocumentSetClient())
         {
             await t.ExportDocSet(docSetId, directoryName).ConfigureAwait(false);
         }
     }
     catch (FaultException <ValidationFault> e)
     {
         throw new Exception(e.Detail.Message, e.InnerException);
     }
     catch (Exception ex)
     {
         Debugger.Break();
         throw;
     }
 }
Esempio n. 9
0
 public async Task ImportDocuments(int asycudaDocumentSetId, bool onlyRegisteredDocuments, bool importTariffCodes, bool noMessages,
                                   bool overwriteExisting, bool linkPi, List <string> fileNames)
 {
     try
     {
         using (var t = new DocumentSetClient())
         {
             await t.ImportDocuments(asycudaDocumentSetId, fileNames, onlyRegisteredDocuments, importTariffCodes, noMessages, overwriteExisting, linkPi).ConfigureAwait(false);
         }
     }
     catch (FaultException <ValidationFault> e)
     {
         throw new Exception(e.Detail.Message, e.InnerException);
     }
     catch (Exception ex)
     {
         Debugger.Break();
         throw;
     }
 }