Files
modernkeepass/ModernKeePass.Application/Recent/Commands/ClearAllRecent/ClearAllRecentCommand.cs
Geoffroy BONNEVILLE 22072bb2fe Most services are implemented as command/queries
Code cleanup
2020-03-26 19:04:51 +01:00

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();
}
}
}
}