// Copyright (c) 2025-2026 GeWuYou // SPDX-License-Identifier: Apache-2.0 using GFramework.Cqrs.Abstractions.Cqrs; namespace GFramework.Core.Cqrs; /// /// 处理 legacy 异步无返回值命令的 bridge handler。 /// internal sealed class LegacyAsyncCommandDispatchRequestHandler : LegacyCqrsDispatchHandlerBase, IRequestHandler { /// public async ValueTask Handle( LegacyAsyncCommandDispatchRequest request, CancellationToken cancellationToken) { ArgumentNullException.ThrowIfNull(request); PrepareTarget(request.Command); await request.Command.ExecuteAsync().ConfigureAwait(false); return Unit.Value; } }