Exemplo 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;
 }
Exemplo 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;
 }