mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
Most services are implemented as command/queries
Code cleanup
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user