Skip to main content
Table of Contents

Class LoggerAzureServiceBusExtensions

Namespace
Stratara.Outbox.AzureServiceBus.Diagnostics.Extensions
Assembly
Stratara.Outbox.AzureServiceBus.dll

Source-generated logger extensions used by the Azure Service Bus message-bus implementation.

public static class LoggerAzureServiceBusExtensions
Inheritance
LoggerAzureServiceBusExtensions
Inherited Members

Methods

LogConcurrencyConflictRequeued(ILogger, Guid, string)

Logs that a handler threw ConcurrencyException and the bus is abandoning the message for redelivery.

[LoggerMessage(EventId = 108105, Level = LogLevel.Warning, Message = "Concurrency conflict on stream {StreamId} ({AggregateTypeName}) — abandoning for redelivery")]
public static void LogConcurrencyConflictRequeued(this ILogger logger, Guid streamId, string aggregateTypeName)

Parameters

logger ILogger

The logger.

streamId Guid

The aggregate stream id involved in the conflict.

aggregateTypeName string

The CLR type name of the aggregate.

LogMessageProcessingFailed(ILogger, string, Exception)

Logs that a message handler threw and the bus is dead-lettering the message.

[LoggerMessage(EventId = 108101, Level = LogLevel.Error, Message = "Error processing message from topic {Topic}")]
public static void LogMessageProcessingFailed(this ILogger logger, string topic, Exception exception)

Parameters

logger ILogger

The logger.

topic string

The Service Bus topic that produced the failing message.

exception Exception

The exception raised by the handler.