This commit is contained in:
TheXamlGuy
2024-06-15 14:24:30 +01:00
parent 85998cde35
commit 61213b00e7
15 changed files with 33 additions and 43 deletions
+4 -4
View File
@@ -4,12 +4,12 @@ namespace Wallet;
public class ItemChangedHandler(IMediator mediator,
IPublisher publisher) :
INotificationHandler<ChangedEventArgs<Item<(Guid, string)>>>
INotificationHandler<ChangedEventArgs<Item>>
{
public async Task Handle(ChangedEventArgs<Item<(Guid, string)>> args)
public async Task Handle(ChangedEventArgs<Item> args)
{
IReadOnlyCollection<(string, int)>? categoryCounts = await mediator.Handle<CountEventArgs<ItemCategory>,
IReadOnlyCollection<(string, int)>>(Count.As<ItemCategory>());
IReadOnlyCollection<(string, int)>? categoryCounts = await mediator.Handle<CountEventArgs<Item>,
IReadOnlyCollection<(string, int)>>(Count.As<Item>());
if (categoryCounts is { Count: > 0 } )
{