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 2245132 commit ad8366c
Show file tree
Hide file tree
Showing 2 changed files 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 ad8366c

Please sign in to comment.