Skip to main content
Table of Contents

Class LoggerUpdateExtensions

Namespace
Stratara.Shared.Diagnostics.Extensions
Assembly
Stratara.Projections.dll

Source-generated logger extensions for aggregate update side-effects detected by projections.

public static class LoggerUpdateExtensions
Inheritance
LoggerUpdateExtensions
Inherited Members

Methods

LogUpdateAggregateDeleted(ILogger, Guid)

Logs that an update was attempted against an aggregate that has already been deleted.

[LoggerMessage(EventId = 109103, Level = LogLevel.Warning, Message = "Aggregate {AggregateId} is deleted when trying to apply update.")]
public static void LogUpdateAggregateDeleted(this ILogger logger, Guid aggregateId)

Parameters

logger ILogger

The logger.

aggregateId Guid

The aggregate identifier.

LogUpdateAggregateNull(ILogger, Guid)

Logs that an update was attempted against an aggregate that resolved to null.

[LoggerMessage(EventId = 109104, Level = LogLevel.Error, Message = "Aggregate {AggregateId} is null when trying to apply update.")]
public static void LogUpdateAggregateNull(this ILogger logger, Guid aggregateId)

Parameters

logger ILogger

The logger.

aggregateId Guid

The aggregate identifier.