baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)

This commit is contained in:
Gaussian committed 2026-11-06 18:38:38 +08:00
commit c2b0e7be0d
6522 files changed
+3530643

No files matched your search

@@ -0,0 +1,23 @@
using Opsoft.NetCore.O3App.Domain;
using Opsoft.NetCore.O3App.Domain.Models;
using System.Threading;
namespace Opsoft.NetCore.O3App.Infrastructure
{
/// <inheritdoc />
public class TraceContextAccessor : ITraceContextAccessor
{
private static AsyncLocal<TraceContext> traceContext = new AsyncLocal<TraceContext>();
private volatile int transactionSequence;
/// <inheritdoc />
public TraceContext TraceContext
{
get => traceContext.Value;
set => traceContext.Value = value;
}
/// <inheritdoc />
public long TransactionSequence => Interlocked.Increment(ref transactionSequence);
}
}