using Opsoft.NetCore.O3App.Shared; namespace Opsoft.NetCore.O3App.Domain.Models { public class TraceContext { public TraceContext(string traceId, string header = TraceIdOptions.DefaultHeader) { Guard.ArgumentNotNullOrWhiteSpace(traceId, nameof(traceId)); Guard.ArgumentNotNullOrWhiteSpace(header, nameof(header)); TraceId = traceId; Header = header; } /// /// The Trace ID which is applicable to the current request. /// public string TraceId { get; } /// /// The name of the header from which the Trace ID is read/written. /// public string Header { get; } } }