feat(batch6-task4): implement f3 account authorization parsing
This commit is contained in:
@@ -407,6 +407,74 @@ public sealed class Account : INatsAccount
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private int _traceDestSampling;
|
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
|
// 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
|
# NATS .NET Porting Status Report
|
||||||
|
|
||||||
Generated: 2026-02-28 14:37:42 UTC
|
Generated: 2026-02-28 14:47:33 UTC
|
||||||
|
|
||||||
## Modules (12 total)
|
## Modules (12 total)
|
||||||
|
|
||||||
@@ -12,10 +12,10 @@ Generated: 2026-02-28 14:37:42 UTC
|
|||||||
|
|
||||||
| Status | Count |
|
| Status | Count |
|
||||||
|--------|-------|
|
|--------|-------|
|
||||||
| deferred | 2094 |
|
| deferred | 2077 |
|
||||||
| n_a | 24 |
|
| n_a | 24 |
|
||||||
| stub | 1 |
|
| stub | 1 |
|
||||||
| verified | 1554 |
|
| verified | 1571 |
|
||||||
|
|
||||||
## Unit Tests (3257 total)
|
## Unit Tests (3257 total)
|
||||||
|
|
||||||
@@ -34,4 +34,4 @@ Generated: 2026-02-28 14:37:42 UTC
|
|||||||
|
|
||||||
## Overall Progress
|
## Overall Progress
|
||||||
|
|
||||||
**2799/6942 items complete (40.3%)**
|
**2816/6942 items complete (40.6%)**
|
||||||
|
|||||||
Reference in New Issue
Block a user