Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }