using MediatR; using Modules.User.Application.Gateways; namespace Modules.User.Application.Queries; public class GetAccountSessionsQuery : IRequest> { public Guid AccountId { get; set; } = default!; } public class GetAccountSessionsQueryHandler(IAccountGateway accountGateway) : IRequestHandler> { public async Task> Handle(GetAccountSessionsQuery request, CancellationToken cancellationToken) { return await accountGateway.GetAccountSessions(request.AccountId); } }