CommandRouterSubmitCommandAsyncTCommand - метод
Осуществляет отправку команды command обработчику
Пространство имён: Tessa.Views.MessageServicesСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
public Task SubmitCommandAsync<TCommand>(
TCommand command,
CancellationToken cancellationToken = default
)
where TCommand : IRoutedCommand
Public Function SubmitCommandAsync(Of TCommand As IRoutedCommand) (
command As TCommand,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
generic<typename TCommand>
where TCommand : IRoutedCommand
virtual Task^ SubmitCommandAsync(
TCommand command,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract SubmitCommandAsync :
command : 'TCommand *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task when 'TCommand : IRoutedCommand
override SubmitCommandAsync :
command : 'TCommand *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task when 'TCommand : IRoutedCommand
- command TCommand
-
Выполняемая команда
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
- TCommand
-
Тип команды
TaskАсинхронная задача.
ICommandRouterSubmitCommandAsyncTCommand(TCommand, CancellationToken)