Пример #1
0
 /// <summary>
 /// Executes the command async.
 /// </summary>
 /// <typeparam name="TResult">The type of the result.</typeparam>
 /// <param name="cmd">The CMD.</param>
 /// <returns></returns>
 public static async Task <bool> ExecuteCommandAsync(CommandAsync cmd)
 {
     return(await cmd.Run());
 }
Пример #2
0
 /// <summary>
 /// Executes the command async.
 /// </summary>
 /// <typeparam name="TResult">The type of the result.</typeparam>
 /// <param name="cmd">The CMD.</param>
 /// <returns></returns>
 public static async Task <TResult> ExecuteCommandAsync <TResult>(CommandAsync <TResult> cmd) where TResult : class
 {
     return(await cmd.Run());
 }