using Tapeti.Config;
namespace Tapeti.Serilog
{
///
/// Stores the IDiagnosticContext for a message handler.
///
public class DiagnosticContextPayload : IMessageContextPayload
{
///
/// Initializes a DiagnosticContext payload.
///
public DiagnosticContextPayload(IDiagnosticContext diagnosticContext)
{
DiagnosticContext = diagnosticContext;
}
///
/// The diagnostic context for the current message handler.
///
public IDiagnosticContext DiagnosticContext { get; }
}
}