Skip to content

Commit

Permalink
Merge pull request #294 from Sondergaard/master
Browse files Browse the repository at this point in the history
Register INotificationHandler as a collection
  • Loading branch information
jbogard authored Sep 13, 2018
2 parents ff4f387 + 8d48cb6 commit b3b819f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/MediatR.Examples.SimpleInjector/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private static IMediator BuildMediator(WrappingWriter writer)
IncludeGenericTypeDefinitions = true,
IncludeComposites = false,
});
container.Register(typeof(INotificationHandler<>), notificationHandlerTypes);
container.Collection.Register(typeof(INotificationHandler<>), notificationHandlerTypes);

container.Register(() => (TextWriter)writer, Lifestyle.Singleton);

Expand Down

0 comments on commit b3b819f

Please sign in to comment.