Class LogoutCommandHandler
- Namespace
- KadicAuth.Application.Auth.Commands.LogoutCommands
- Assembly
- KadicAuth.Application.dll
public sealed class LogoutCommandHandler : IRequestHandler<LogoutCommand, Unit>
- Inheritance
-
objectLogoutCommandHandler
- Implements
Constructors
LogoutCommandHandler(IUserSessionRepository, IRefreshTokenRepository, IAuthUnitOfWork, IStringLocalizer<AuthMessages>)
public LogoutCommandHandler(IUserSessionRepository userSessionRepository, IRefreshTokenRepository refreshTokenRepository, IAuthUnitOfWork unitOfWork, IStringLocalizer<AuthMessages> localizer)
Parameters
userSessionRepositoryIUserSessionRepositoryrefreshTokenRepositoryIRefreshTokenRepositoryunitOfWorkIAuthUnitOfWorklocalizerIStringLocalizer<AuthMessages>
Methods
Handle(LogoutCommand, CancellationToken)
Handles a request
public Task<Unit> Handle(LogoutCommand request, CancellationToken cancellationToken)
Parameters
requestLogoutCommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<Unit>
Response from the request