Skip to content

Commit

Permalink
chore: update MediatR.Contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardSmit committed Dec 21, 2023
1 parent ccb7e0f commit 4597fe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Mediator/Handlers/IRequestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public interface IRequestHandler<in TRequest> : IRequestHandler<TRequest, Unit>
/// </summary>
/// <typeparam name="TRequest">The type of request being handled</typeparam>
public abstract class AsyncRequestHandler<TRequest> : IRequestHandler<TRequest>
where TRequest : IRequest
where TRequest : IRequest<Unit>
{
async ValueTask<Unit> IRequestHandler<TRequest, Unit>.Handle(IServiceProvider provider, TRequest request, CancellationToken cancellationToken)
{
Expand Down Expand Up @@ -82,7 +82,7 @@ ValueTask<TResponse> IRequestHandler<TRequest, TResponse>.Handle(IServiceProvide
/// </summary>
/// <typeparam name="TRequest">The type of request being handled</typeparam>
public abstract class RequestHandler<TRequest> : IRequestHandler<TRequest>
where TRequest : IRequest
where TRequest : IRequest<Unit>
{
ValueTask<Unit> IRequestHandler<TRequest, Unit>.Handle(IServiceProvider provider, TRequest request,
CancellationToken cancellationToken)
Expand Down
2 changes: 1 addition & 1 deletion src/Mediator/Mediator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MediatR.Contracts" Version="1.0.1" />
<PackageReference Include="MediatR.Contracts" Version="2.0.1" />
<PackageReference Include="IsExternalInit" Version="1.0.2" PrivateAssets="all" />
</ItemGroup>

Expand Down

0 comments on commit 4597fe3

Please sign in to comment.