Skip to content

Commit

Permalink
Fix wrong project name
Browse files Browse the repository at this point in the history
  • Loading branch information
rungwiroon committed Nov 16, 2023
1 parent 92433a2 commit bc132bc
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,17 @@ await mediator.Send(query)
.Map(x => x.ToAff()))
.Flatten();
}

public static Aff<LanguageExt.Unit> PublishAff<TNotification>(
this IMediator mediator,
TNotification notification)
where TNotification : INotification
{
return
Aff(async () =>
{
await mediator.Publish(notification);
return unit;
});
}
}

0 comments on commit bc132bc

Please sign in to comment.