WIP: Item counts

This commit is contained in:
TheXamlGuy
2024-06-11 22:32:14 +01:00
parent 0fecdef1fe
commit ec7d6611a1
28 changed files with 205 additions and 74 deletions
+3 -1
View File
@@ -4,7 +4,8 @@ namespace Wallet;
public class ArchiveItemHandler(IDecoratorService<Item<(Guid, string)>> decoratorService,
ICache<Item<(Guid, string)>> cache,
IMediator mediator) :
IMediator mediator,
IPublisher publisher) :
INotificationHandler<ArchiveEventArgs<Item>>
{
public async Task Handle(ArchiveEventArgs<Item> args)
@@ -21,6 +22,7 @@ public class ArchiveItemHandler(IDecoratorService<Item<(Guid, string)>> decorato
bool>(new UpdateEventArgs<(Guid, int)>((id, 2)));
cache.Remove(item);
publisher.Publish(Changed.As(item));
}
}
}