@@ -13,7 +13,7 @@ namespace Cortex.Streams.Mediator.Handlers
1313 public class StreamEmittingNotificationHandler < TNotification > : INotificationHandler < TNotification >
1414 where TNotification : INotification
1515 {
16- private readonly IStream < TNotification , TNotification > _stream ;
16+ private readonly IStream < TNotification > _stream ;
1717 private readonly Action < TNotification , Exception > _errorHandler ;
1818
1919 /// <summary>
@@ -22,7 +22,7 @@ public class StreamEmittingNotificationHandler<TNotification> : INotificationHan
2222 /// <param name="stream">The stream to emit notifications to.</param>
2323 /// <param name="errorHandler">Optional handler for errors during emission.</param>
2424 public StreamEmittingNotificationHandler (
25- IStream < TNotification , TNotification > stream ,
25+ IStream < TNotification > stream ,
2626 Action < TNotification , Exception > errorHandler = null )
2727 {
2828 _stream = stream ?? throw new ArgumentNullException ( nameof ( stream ) ) ;
@@ -62,7 +62,7 @@ public async Task Handle(TNotification notification, CancellationToken cancellat
6262 public class TransformingStreamNotificationHandler < TNotification , TStreamInput > : INotificationHandler < TNotification >
6363 where TNotification : INotification
6464 {
65- private readonly IStream < TStreamInput , TStreamInput > _stream ;
65+ private readonly IStream < TStreamInput > _stream ;
6666 private readonly Func < TNotification , TStreamInput > _transformer ;
6767 private readonly Action < TNotification , Exception > _errorHandler ;
6868
@@ -73,7 +73,7 @@ public class TransformingStreamNotificationHandler<TNotification, TStreamInput>
7373 /// <param name="transformer">A function to transform notifications into stream input.</param>
7474 /// <param name="errorHandler">Optional handler for errors during emission.</param>
7575 public TransformingStreamNotificationHandler (
76- IStream < TStreamInput , TStreamInput > stream ,
76+ IStream < TStreamInput > stream ,
7777 Func < TNotification , TStreamInput > transformer ,
7878 Action < TNotification , Exception > errorHandler = null )
7979 {
0 commit comments