Skip to content

Commit 65716a8

Browse files
committed
Drop mention of ICanExecute registration
We don't actually use that anymore, and we rather just get the actual handler and cast it to ICanExecute appropriately.
1 parent df8b991 commit 65716a8

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/Merq.Tests/MessageBusSpec.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public async Task when_executing_stream_then_gets_results()
3232

3333
var bus = new MessageBus(new ServiceCollection()
3434
.AddSingleton<IStreamCommandHandler<StreamCommand, int>>(handler)
35-
.AddSingleton<ICanExecute<StreamCommand>>(handler)
3635
.BuildServiceProvider());
3736

3837
Assert.True(bus.CanHandle(command));

src/Merq/MessageBus.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ namespace Merq;
2626
/// they implement.
2727
/// <para>
2828
/// Command handlers, in turn, need to be registered with:
29-
/// * <see cref="ICanExecute{TCommand}"/>: to properly respond to invocations of
30-
/// <see cref="IMessageBus.CanExecute{TCommand}(TCommand)"/>
3129
/// * <see cref="ICommandHandler{TCommand}"/>, <see cref="ICommandHandler{TCommand, TResult}"/>,
3230
/// <see cref="IAsyncCommandHandler{TCommand}"/> or <see cref="IAsyncCommandHandler{TCommand, TResult}"/>
3331
/// according to the corresponding marker interface implemented by the <c>TCommand</c>

0 commit comments

Comments
 (0)