feat(batch6-task4): implement f3 account authorization parsing
This commit is contained in:
@@ -407,6 +407,74 @@ public sealed class Account : INatsAccount
|
||||
/// </summary>
|
||||
private int _traceDestSampling;
|
||||
|
||||
/// <summary>
|
||||
/// Sets account-level message trace destination subject.
|
||||
/// Mirrors writes to Go <c>acc.traceDest</c> during config parsing.
|
||||
/// </summary>
|
||||
internal void SetMessageTraceDestination(string subject)
|
||||
{
|
||||
_mu.EnterWriteLock();
|
||||
try
|
||||
{
|
||||
_traceDest = subject ?? string.Empty;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_mu.ExitWriteLock();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns account-level message trace destination subject.
|
||||
/// Mirrors reads of Go <c>acc.traceDest</c> during config parsing.
|
||||
/// </summary>
|
||||
internal string GetMessageTraceDestination()
|
||||
{
|
||||
_mu.EnterReadLock();
|
||||
try
|
||||
{
|
||||
return _traceDest;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_mu.ExitReadLock();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets account-level message trace sampling percentage.
|
||||
/// Mirrors writes to Go <c>acc.traceDestSampling</c> during config parsing.
|
||||
/// </summary>
|
||||
internal void SetMessageTraceSampling(int sampling)
|
||||
{
|
||||
_mu.EnterWriteLock();
|
||||
try
|
||||
{
|
||||
_traceDestSampling = sampling;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_mu.ExitWriteLock();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns account-level message trace sampling percentage.
|
||||
/// Mirrors reads of Go <c>acc.traceDestSampling</c> during config parsing.
|
||||
/// </summary>
|
||||
internal int GetMessageTraceSampling()
|
||||
{
|
||||
_mu.EnterReadLock();
|
||||
try
|
||||
{
|
||||
return _traceDestSampling;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_mu.ExitReadLock();
|
||||
}
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Factory
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
BIN
porting.db
BIN
porting.db
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
# NATS .NET Porting Status Report
|
||||
|
||||
Generated: 2026-02-28 14:37:42 UTC
|
||||
Generated: 2026-02-28 14:47:33 UTC
|
||||
|
||||
## Modules (12 total)
|
||||
|
||||
@@ -12,10 +12,10 @@ Generated: 2026-02-28 14:37:42 UTC
|
||||
|
||||
| Status | Count |
|
||||
|--------|-------|
|
||||
| deferred | 2094 |
|
||||
| deferred | 2077 |
|
||||
| n_a | 24 |
|
||||
| stub | 1 |
|
||||
| verified | 1554 |
|
||||
| verified | 1571 |
|
||||
|
||||
## Unit Tests (3257 total)
|
||||
|
||||
@@ -34,4 +34,4 @@ Generated: 2026-02-28 14:37:42 UTC
|
||||
|
||||
## Overall Progress
|
||||
|
||||
**2799/6942 items complete (40.3%)**
|
||||
**2816/6942 items complete (40.6%)**
|
||||
|
||||
Reference in New Issue
Block a user