//
// IPostCommandExecutionEvent.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Threading;
using System.Threading.Tasks;
using NosSmooth.Core.Client;
using Remora.Results;
namespace NosSmooth.Core.Commands;
///
/// Event executed after command handler.
///
public interface IPostCommandExecutionEvent
{
///
/// Execute the command post execution event.
///
/// The NosTale client.
/// The command.
/// The result from the command handler.
/// The cancellation token for cancelling the operation.
/// The type of the command.
/// A result that may or may not succeed.
public Task ExecuteAfterCommandAsync
(
INostaleClient client,
TCommand command,
Result handlerResult,
CancellationToken ct = default
)
where TCommand : ICommand;
}