13 lines
256 B
C#
13 lines
256 B
C#
namespace CommandHandler.Commands;
|
|
|
|
internal class CombinedCommand(params ICommand[] commands) : ICommand
|
|
{
|
|
public async Task Execute()
|
|
{
|
|
foreach (var command in commands)
|
|
{
|
|
await command.Execute();
|
|
}
|
|
}
|
|
}
|