mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
23 lines
623 B
C#
23 lines
623 B
C#
![]() |
using MediatR;
|
|||
|
using ModernKeePass.Application.Common.Interfaces;
|
|||
|
|
|||
|
namespace ModernKeePass.Application.Recent.Commands.ClearAllRecent
|
|||
|
{
|
|||
|
public class ClearAllRecentCommand : IRequest
|
|||
|
{
|
|||
|
public class ClearAllRecentCommandHandler : IRequestHandler<ClearAllRecentCommand>
|
|||
|
{
|
|||
|
private readonly IRecentProxy _recent;
|
|||
|
|
|||
|
public ClearAllRecentCommandHandler(IRecentProxy recent)
|
|||
|
{
|
|||
|
_recent = recent;
|
|||
|
}
|
|||
|
|
|||
|
public void Handle(ClearAllRecentCommand message)
|
|||
|
{
|
|||
|
_recent.ClearAll();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|