From cb75412d199dc77284323fbff6cd89cae0d81dca Mon Sep 17 00:00:00 2001 From: john Date: Wed, 11 Jun 2025 23:36:30 +0200 Subject: [PATCH] write some comment --- Femto.Modules.Auth/Application/Services/IAuthService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Femto.Modules.Auth/Application/Services/IAuthService.cs b/Femto.Modules.Auth/Application/Services/IAuthService.cs index 56fd423..2858053 100644 --- a/Femto.Modules.Auth/Application/Services/IAuthService.cs +++ b/Femto.Modules.Auth/Application/Services/IAuthService.cs @@ -3,6 +3,12 @@ using Femto.Modules.Auth.Models; namespace Femto.Modules.Auth.Application.Services; +/// +/// I broke off IAuthService from IAuthModule because the CQRS distinction is cumbersome when doing auth handling, +/// particularly in regards to session management. I may or may not bother to move the commands and queries here also, +/// but for controller actions I do quite like having the abstraction, and there is less drive within me to bother. +/// It just seems redundant to expose them both, and it's a bit confusin' +/// public interface IAuthService { public Task GetUserWithCredentials(string username, string password, CancellationToken cancellationToken = default);