Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Merq.Tests/MessageBusSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public async Task when_executing_stream_then_gets_results()

var bus = new MessageBus(new ServiceCollection()
.AddSingleton<IStreamCommandHandler<StreamCommand, int>>(handler)
.AddSingleton<ICanExecute<StreamCommand>>(handler)
.BuildServiceProvider());

Assert.True(bus.CanHandle(command));
Expand Down
2 changes: 0 additions & 2 deletions src/Merq/MessageBus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ namespace Merq;
/// they implement.
/// <para>
/// Command handlers, in turn, need to be registered with:
/// * <see cref="ICanExecute{TCommand}"/>: to properly respond to invocations of
/// <see cref="IMessageBus.CanExecute{TCommand}(TCommand)"/>
/// * <see cref="ICommandHandler{TCommand}"/>, <see cref="ICommandHandler{TCommand, TResult}"/>,
/// <see cref="IAsyncCommandHandler{TCommand}"/> or <see cref="IAsyncCommandHandler{TCommand, TResult}"/>
/// according to the corresponding marker interface implemented by the <c>TCommand</c>
Expand Down
Loading