Пример #1
0
        public Task flushBatchRequestsAsync(IProgress <bool> progress = null,
                                            CancellationToken cancel  = new CancellationToken())
        {
            var completed = new FlushBatchTaskCompletionCallback(progress, cancel);
            var outgoing  = new CommunicatorFlushBatchAsync(instance_, completed);

            outgoing.invoke(__flushBatchRequests_name);
            return(completed.Task);
        }
Пример #2
0
 public void flushBatchRequests(Ice.CompressBatch compressBatch)
 {
     try
     {
         var completed = new FlushBatchTaskCompletionCallback();
         var outgoing  = new CommunicatorFlushBatchAsync(_instance, completed);
         outgoing.invoke(_flushBatchRequests_name, compressBatch, true);
         completed.Task.Wait();
     }
     catch (AggregateException ex)
     {
         throw ex.InnerException;
     }
 }
Пример #3
0
 public Task flushBatchRequestsAsync(IProgress<bool> progress = null,
     CancellationToken cancel = new CancellationToken())
 {
     var completed = new FlushBatchTaskCompletionCallback(progress, cancel);
     var outgoing = new CommunicatorFlushBatchAsync(instance_, completed);
     outgoing.invoke(__flushBatchRequests_name);
     return completed.Task;
 }