Esempio n. 1
0
 public Task flushBatchRequestsAsync(IProgress<bool> progress = null,
                                     CancellationToken cancel = new CancellationToken())
 {
     var completed = new FlushBatchTaskCompletionCallback(progress, cancel);
     var outgoing = new ConnectionFlushBatchAsync(this, _instance, completed);
     outgoing.invoke(__flushBatchRequests_name);
     return completed.Task;
 }
Esempio n. 2
0
 public AsyncResult begin_flushBatchRequests(AsyncCallback cb = null, object cookie = null)
 {
     var result = new ConnectionFlushBatchCompletionCallback(this, _communicator, _instance,
                                                             __flushBatchRequests_name, cookie, cb);
     var outgoing = new ConnectionFlushBatchAsync(this, _instance, result);
     outgoing.invoke(__flushBatchRequests_name);
     return result;
 }