Repository.

BeginExecute<TResult>(IMercurialCommand<TResult>, AsyncCallback) Method

Summary

Executes the given IMercurialCommand<TResult> command asynchronously against the Mercurial repository, returning a IAsyncResult<T> object keeping track of the execution.
Assembly
Mercurial.Net.dll
Namespace
Mercurial
Containing Type
Repository

Syntax

public IAsyncResult<TResult> BeginExecute<TResult>(IMercurialCommand<TResult> command, AsyncCallback callback)

Type Parameters

Name Description
TResult The type of result that will be returned from executing the command.

Parameters

Name Type Description
command IMercurialCommand<TResult> The IMercurialCommand<TResult> command to execute.
callback AsyncCallback A callback to call when the execution has completed. The System.IAsyncResult.AsyncState value of the IAsyncResult object passed to the callback will be the command object.

Return Value

Type Description
IAsyncResult<T> A IAsyncResult object keeping track of the asynchronous execution.