コード例 #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);
        }
コード例 #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);
        }