Added ICollectionSynchronization
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using Toolkit.Foundation;
|
||||
|
||||
namespace Bitvault;
|
||||
public class UnfavouriteItemHandler(IValueStore<Item<(Guid, string)>> valueStore,
|
||||
public class UnfavouriteItemHandler(IDecoratorService<Item<(Guid, string)>> decoratorService,
|
||||
IMediator mediator) :
|
||||
INotificationHandler<UnfavouriteEventArgs<Item>>
|
||||
{
|
||||
@@ -9,7 +9,7 @@ public class UnfavouriteItemHandler(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, 0)));
|
||||
|
||||
Reference in New Issue
Block a user