mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 16:10:16 -04:00
25 lines
812 B
C#
25 lines
812 B
C#
![]() |
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using MediatR;
|
|||
|
using ModernKeePass.Application.Common.Interfaces;
|
|||
|
|
|||
|
namespace ModernKeePass.Application.Cryptography.Queries.GetCompressions
|
|||
|
{
|
|||
|
public class GetCompressionsQuery : IRequest<IEnumerable<string>>
|
|||
|
{
|
|||
|
public class GetCompressionsQueryHandler : IRequestHandler<GetCompressionsQuery, IEnumerable<string>>
|
|||
|
{
|
|||
|
private readonly ICryptographyClient _cryptography;
|
|||
|
|
|||
|
public GetCompressionsQueryHandler(ICryptographyClient cryptography)
|
|||
|
{
|
|||
|
_cryptography = cryptography;
|
|||
|
}
|
|||
|
|
|||
|
public IEnumerable<string> Handle(GetCompressionsQuery message)
|
|||
|
{
|
|||
|
return _cryptography.CompressionAlgorithms.OrderBy(c => c);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|