Added ICollectionSynchronization
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Bitvault;
|
||||
|
||||
public class FavouriteItemHandler(IValueStore<Item<(Guid, string)>> valueStore,
|
||||
public class FavouriteItemHandler(IDecoratorService<Item<(Guid, string)>> decoratorService,
|
||||
IMediator mediator) :
|
||||
INotificationHandler<FavouriteEventArgs<Item>>
|
||||
{
|
||||
@@ -10,7 +10,7 @@ public class FavouriteItemHandler(IValueStore<Item<(Guid, string)>> valueStore,
|
||||
{
|
||||
try
|
||||
{
|
||||
if (valueStore.Value is Item<(Guid, string)> item)
|
||||
if (decoratorService.Value is Item<(Guid, string)> item)
|
||||
{
|
||||
(Guid id, string name) = item.Value;
|
||||
await mediator.Handle<UpdateEventArgs<(Guid, int)>, bool>(new UpdateEventArgs<(Guid, int)>((id, 1)));
|
||||
|
||||
Reference in New Issue
Block a user