Skip to content

Commit

Permalink
fix: Change Sned parameter to use type parameter instead
Browse files Browse the repository at this point in the history
  • Loading branch information
TwentyFourMinutes authored and davidroth committed Jul 25, 2024
1 parent c6a1086 commit 1d26537
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>9.0.0</Version>
<Version>9.0.1</Version>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Mediator/src/ISender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public interface ISender
/// <param name="request">Request object</param>
/// <param name="cancellationToken">Optional cancellation token</param>
/// <returns></returns>
Task Send<TRequest>(IRequest request, CancellationToken cancellationToken = default);
Task Send<TRequest>(TRequest request, CancellationToken cancellationToken = default);

/// <summary>
/// Create a stream via a single stream handler
Expand Down
4 changes: 2 additions & 2 deletions src/Mediator/src/SimpleInjectorMediator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public async Task<TResponse> Send<TResponse>(IRequest<TResponse> request, Cancel
return await handler.Handle(request, cancellationToken);
}

public async Task Send<TRequest>(IRequest request, CancellationToken cancellationToken = default)
=> await Send<IRequest>(request, cancellationToken);
public async Task Send<TRequest>(TRequest request, CancellationToken cancellationToken = default)
=> await Send(request, cancellationToken);

public async Task Publish<TNotification>(TNotification notification, CancellationToken cancellationToken = default)
where TNotification : INotification
Expand Down

0 comments on commit 1d26537

Please sign in to comment.