do sessions in memory and also fix glaring security hole
This commit is contained in:
parent
7b6c155a73
commit
f48b421500
31 changed files with 441 additions and 440 deletions
|
@ -18,7 +18,12 @@ public class SaveChangesPipelineBehaviour<TRequest, TResponse>(
|
|||
CancellationToken cancellationToken
|
||||
)
|
||||
{
|
||||
logger.LogDebug("handling request {Type}", typeof(TRequest).Name);
|
||||
var response = await next(cancellationToken);
|
||||
|
||||
var hasChanges = context.ChangeTracker.HasChanges();
|
||||
logger.LogDebug("request handled. Changes? {HasChanges}", hasChanges);
|
||||
|
||||
if (context.ChangeTracker.HasChanges())
|
||||
{
|
||||
await context.EmitDomainEvents(logger, publisher, cancellationToken);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue