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