/// <summary> /// Executes the command. /// </summary> /// <returns>A task that represents the asynchronous command execution.</returns> public Task ExecuteAsync() { Task t = _execute(); Execution = new TaskExecution(t); return(t); }
/// <summary> /// Executes the command. /// </summary> /// <param name="parameter">Data used by the command.</param> /// <returns>A task that represents the asynchronous command execution.</returns> public Task ExecuteAsync(TParameter parameter) { Task t = _execute(parameter); Execution = new TaskExecution(t); return(t); }