Port server/server.go account management and initialization (~1950 LOC): - NatsServer.cs: full server struct fields (atomic counters, locks, maps, stubs for gateway/websocket/mqtt/ocsp/leafnode) - NatsServer.Init.cs: factory methods (New/NewServer/NewServerFromConfig), compression helpers (ValidateAndNormalizeCompressionOption, SelectCompressionMode, SelectS2AutoModeBasedOnRtt, CompressOptsEqual), cluster-name management, validation (ValidateCluster, ValidatePinnedCerts, ValidateOptions), trusted-key processing, CLI helpers, running-state checks, and Start() stub - NatsServer.Accounts.cs: account management (ConfigureAccounts, LookupOrRegisterAccount, RegisterAccount, SetSystemAccount, SetDefaultSystemAccount, SetSystemAccountInternal, CreateInternalClient*, ShouldTrackSubscriptions, RegisterAccountNoLock, SetAccountSublist, SetRouteInfo, LookupAccount, LookupOrFetchAccount, UpdateAccount, UpdateAccountWithClaimJwt, FetchRawAccountClaims, FetchAccountClaims, VerifyAccountClaims, FetchAccountFromResolver, GlobalAccountOnly, StandAloneMode, ConfiguredRoutes, ActivePeers, ComputeRoutePoolIdx) - NatsServerTypes.cs: ServerInfo, ServerStats, NodeInfo, ServerProtocol, CompressionMode constants, AccountClaims stub, InternalState stub, and cross-session stubs for JetStream/gateway/websocket/mqtt/ocsp - AuthTypes.cs: extend Account stub with Issuer, ClaimJwt, RoutePoolIdx, Incomplete, Updated, Sublist, Server fields, and IsExpired() - ServerOptions.cs: add Accounts property (List<Account>) - ServerTests.cs: 38 standalone tests (IDs 2866, 2882, plus compression and validation helpers); server-dependent tests marked n/a Features: 77 complete (IDs 2974–3050) Tests: 2 complete (2866, 2882); 18 n/a (server-dependent) All tests: 545 unit + 1 integration pass
40 lines
589 B
Markdown
40 lines
589 B
Markdown
# NATS .NET Porting Status Report
|
|
|
|
Generated: 2026-02-26 19:18:19 UTC
|
|
|
|
## Modules (12 total)
|
|
|
|
| Status | Count |
|
|
|--------|-------|
|
|
| complete | 11 |
|
|
| not_started | 1 |
|
|
|
|
## Features (3673 total)
|
|
|
|
| Status | Count |
|
|
|--------|-------|
|
|
| complete | 744 |
|
|
| n_a | 82 |
|
|
| not_started | 2754 |
|
|
| stub | 93 |
|
|
|
|
## Unit Tests (3257 total)
|
|
|
|
| Status | Count |
|
|
|--------|-------|
|
|
| complete | 276 |
|
|
| n_a | 181 |
|
|
| not_started | 2576 |
|
|
| stub | 224 |
|
|
|
|
## Library Mappings (36 total)
|
|
|
|
| Status | Count |
|
|
|--------|-------|
|
|
| mapped | 36 |
|
|
|
|
|
|
## Overall Progress
|
|
|
|
**1294/6942 items complete (18.6%)**
|