Skip to content

Switch to ValueTask<T> to avoid allocations from commands #579

Switch to ValueTask<T> to avoid allocations from commands

Switch to ValueTask<T> to avoid allocations from commands #579

Triggered via pull request May 14, 2025 19:51
Status Failure
Total duration 4m 28s
Artifacts

build.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build-windows-latest: src/Merq.Tests/Commands.cs#L55
'NonPublicAsyncCommandHandler' does not implement interface member 'IAsyncCommandHandler<NonPublicAsyncCommand>.ExecuteAsync(NonPublicAsyncCommand, CancellationToken)'. 'NonPublicAsyncCommandHandler.ExecuteAsync(NonPublicAsyncCommand, CancellationToken)' cannot implement 'IAsyncCommandHandler<NonPublicAsyncCommand>.ExecuteAsync(NonPublicAsyncCommand, CancellationToken)' because it does not have the matching return type of 'ValueTask'.
build-windows-latest: src/Merq.Tests/Commands.cs#L64
'NonPublicAsyncCommandResultHandler' does not implement interface member 'IAsyncCommandHandler<NonPublicAsyncCommandResult, int>.ExecuteAsync(NonPublicAsyncCommandResult, CancellationToken)'. 'NonPublicAsyncCommandResultHandler.ExecuteAsync(NonPublicAsyncCommandResult, CancellationToken)' cannot implement 'IAsyncCommandHandler<NonPublicAsyncCommandResult, int>.ExecuteAsync(NonPublicAsyncCommandResult, CancellationToken)' because it does not have the matching return type of 'ValueTask<int>'.
build-windows-latest: src/Merq.Tests/GeneratorTests.cs#L121
'TransientService' does not implement interface member 'IAsyncCommandHandler<TransientCommand>.ExecuteAsync(TransientCommand, CancellationToken)'. 'TransientService.ExecuteAsync(TransientCommand, CancellationToken)' cannot implement 'IAsyncCommandHandler<TransientCommand>.ExecuteAsync(TransientCommand, CancellationToken)' because it does not have the matching return type of 'ValueTask'.
build-windows-latest: src/Merq.Tests/GeneratorTests.cs#L130
'TransientService2' does not implement interface member 'IAsyncCommandHandler<TransientResultCommand, string>.ExecuteAsync(TransientResultCommand, CancellationToken)'. 'TransientService2.ExecuteAsync(TransientResultCommand, CancellationToken)' cannot implement 'IAsyncCommandHandler<TransientResultCommand, string>.ExecuteAsync(TransientResultCommand, CancellationToken)' because it does not have the matching return type of 'ValueTask<string>'.
build-windows-latest: src/Merq.Tests/Commands.cs#L55
'NonPublicAsyncCommandHandler' does not implement interface member 'IAsyncCommandHandler<NonPublicAsyncCommand>.ExecuteAsync(NonPublicAsyncCommand, CancellationToken)'. 'NonPublicAsyncCommandHandler.ExecuteAsync(NonPublicAsyncCommand, CancellationToken)' cannot implement 'IAsyncCommandHandler<NonPublicAsyncCommand>.ExecuteAsync(NonPublicAsyncCommand, CancellationToken)' because it does not have the matching return type of 'ValueTask'.
build-windows-latest: src/Merq.Tests/Commands.cs#L64
'NonPublicAsyncCommandResultHandler' does not implement interface member 'IAsyncCommandHandler<NonPublicAsyncCommandResult, int>.ExecuteAsync(NonPublicAsyncCommandResult, CancellationToken)'. 'NonPublicAsyncCommandResultHandler.ExecuteAsync(NonPublicAsyncCommandResult, CancellationToken)' cannot implement 'IAsyncCommandHandler<NonPublicAsyncCommandResult, int>.ExecuteAsync(NonPublicAsyncCommandResult, CancellationToken)' because it does not have the matching return type of 'ValueTask<int>'.
build-windows-latest: src/Merq.Tests/GeneratorTests.cs#L121
'TransientService' does not implement interface member 'IAsyncCommandHandler<TransientCommand>.ExecuteAsync(TransientCommand, CancellationToken)'. 'TransientService.ExecuteAsync(TransientCommand, CancellationToken)' cannot implement 'IAsyncCommandHandler<TransientCommand>.ExecuteAsync(TransientCommand, CancellationToken)' because it does not have the matching return type of 'ValueTask'.
build-windows-latest: src/Merq.Tests/GeneratorTests.cs#L130
'TransientService2' does not implement interface member 'IAsyncCommandHandler<TransientResultCommand, string>.ExecuteAsync(TransientResultCommand, CancellationToken)'. 'TransientService2.ExecuteAsync(TransientResultCommand, CancellationToken)' cannot implement 'IAsyncCommandHandler<TransientResultCommand, string>.ExecuteAsync(TransientResultCommand, CancellationToken)' because it does not have the matching return type of 'ValueTask<string>'.
build-windows-latest: src/Merq.Tests/Commands.cs#L55
'NonPublicAsyncCommandHandler' does not implement interface member 'IAsyncCommandHandler<NonPublicAsyncCommand>.ExecuteAsync(NonPublicAsyncCommand, CancellationToken)'. 'NonPublicAsyncCommandHandler.ExecuteAsync(NonPublicAsyncCommand, CancellationToken)' cannot implement 'IAsyncCommandHandler<NonPublicAsyncCommand>.ExecuteAsync(NonPublicAsyncCommand, CancellationToken)' because it does not have the matching return type of 'ValueTask'.
build-windows-latest: src/Merq.Tests/Commands.cs#L64
'NonPublicAsyncCommandResultHandler' does not implement interface member 'IAsyncCommandHandler<NonPublicAsyncCommandResult, int>.ExecuteAsync(NonPublicAsyncCommandResult, CancellationToken)'. 'NonPublicAsyncCommandResultHandler.ExecuteAsync(NonPublicAsyncCommandResult, CancellationToken)' cannot implement 'IAsyncCommandHandler<NonPublicAsyncCommandResult, int>.ExecuteAsync(NonPublicAsyncCommandResult, CancellationToken)' because it does not have the matching return type of 'ValueTask<int>'.