backoffice-useraccount-legacy
Legacy WCF service (extracted from TFS-era BackOffice2008 code) exposing person, membership and branch user-account data from the UserAccount_Legacy SQL database, with a geo-coordinates lookup helper.
Health score
0 to 100 across seven weighted factors; nothing is hidden. Green is 75 and above, amber 50 to 74, red below 50. How scoring works.
Facts
| Languages | csharp, sql |
| Frameworks | WCF |
| Runtimes | .NET Framework 4.8, .NET Standard 2.0 (libraries) |
| Tests / CI | some / CI in place |
| Last commit | 2026-06-22 |
| Owner | Owner unknown (mapping to be curated) |
| Domain | Identity and access (system generated; curate in repo-owners.json to override) |
| Product area | Phenix |
| Hosted | On-prem Deployed to our own machines
|
| Releases | 2 release pipeline(s): \finance\backoffice\UserAccountLegacy Database; \finance\backoffice\backoffice-useraccount-legacy CI |
| Integration | wcf, soap |
| Source | Open in Azure DevOps |
Dependencies in context
Entanglement
loosely attached Bound into the core by 1 mechanism(s).
- Speaks WCF (host)
Detaches when its WCF surface gains a modern interface or its WCF calls move to one.
Migration playbooks
Generated from this repo's assessment data: what is feasible, what blocks it, and the steps in order. Ratings: green means actionable now, amber means sequence other work first, red means blocked, grey means not applicable.
ZDD adoption
A long roadTechnically eligible one day, but the blockers are structural: hosted WCF or SOAP contracts that cannot run two versions at once, or heavy legacy coupling. Sequence the modernisation work first. Hosts WCF or SOAP endpoints: strict serialization contracts cannot safely run two versions at once (the shared-enum trap). End-of-life runtime compounds the work.
- 2 system(s) depend on this repo; during a rolling deploy they will talk to old and new versions at once, so responses must stay compatible
- Adopt the four-stage discipline from the ZDD engineering standard: pre-deployment compatibility, deployment, feature activation behind a flag, post-release cleanup.
- Raise automated test coverage first: ZDD trades the end-of-sprint manual gate for continuous automated confidence, so the tests are the entry ticket.
- Make every change dual-version safe: backwards-compatible APIs (new major version for breaking wire changes), expand and contract for any schema change, and consumers tolerant of unknown fields.
- Audit serialized data: anything in Redis, queues or shared caches must deserialize cleanly across adjacent versions.
- Wrap behaviour changes in feature flags so code deploys dark and release becomes a business decision, not a deployment event.
- Route deployments through the Workflow Engine's automated drain, deploy, health-check, return cycle (the path proven by the first automated production run in mid-2026).
- Verify with area-scoped regression rather than the whole-platform cycle, and watch error rates after rollout with automated rollback on alert.
SQL Server exit
Feasible after replatforming (1 owned database)The database is solely owned so no other system has to move, but the runtime is end-of-life; sequence the replatform first, then the engine swap.
- Inventory the schema and query surface of sqlserver:UserAccount_Legacy: tables, stored procedures, triggers, cross-database joins and anything else engine-specific.
- Confirm the target: PostgreSQL (relational model; keep transactions and joins, swap the engine).
- Replatform to modern .NET first (see the recommended actions): current PostgreSQL and MongoDB drivers and EF Core providers target modern .NET, and doing one risky change at a time is cheaper than doing two.
- Data access is not through an ORM, so port the SQL by hand: translate T-SQL constructs, replace stored procedures with application code or target-native equivalents, and add integration tests around the queries that matter first.
- Stand up the target alongside SQL Server, backfill with an ETL pass (pgloader or an export/import job), then dual-write or replicate until parity is proven.
- Move reads to the target, watch correctness and latency, then cut writes over and keep SQL Server read-only until confidence is earned.
- Decommission the SQL Server database and remove the connection strings and firewall paths that pointed at it.
Containerisation
Feasible after replatformingAppropriate eventually, but not from here: the legacy runtime and the hosted WCF surface both have to go first, and that work is already in this repo's recommended actions.
- .NET Framework only runs on Windows; practical (Linux) containers need modern .NET
- Hosts WCF or SOAP endpoints, which have no home on modern .NET; consumers need a modern interface first
- Replatform to modern .NET first (see the recommended actions), replacing the hosted WCF/SOAP surface with REST, gRPC or messaging so consumers can follow. Containerising then becomes routine.
- Add a Dockerfile and make the app read all configuration from environment variables and the secrets manager, never from machine-local files.
- Log to stdout and expose a health check endpoint so ECS can supervise it.
- Adopt the shared ci.yml pipeline template with the container parameters (awsRegion, containerAfterBuild, ecsTerraformRepo), which is exactly how the estate's existing AWS services deploy.
- Define the service in the Terraform repo, deploy to a non-production environment, then shift traffic and disarm the deployment-group release pipeline.
Recommended actions
Replatform backoffice-useraccount-legacy to modern .NET
Runs on .NET Framework 4.8, .NET Standard 2.0 (libraries), out of mainstream support. No pinning dependency blocks it; sequence by fan-in (providers before consumers).
Impact: Unblocks 2 dependent system(s)
proposedAssessment notes
backoffice-useraccount-legacy
Purpose
Hosts UserAccountLegacyServiceHost.svc, a WCF service over legacy user-account data: Person, PersonMembership, PersonBranch, GlobalMembership and ticketing records. Extracted from the archived TFS BackOffice2008/MainLine/Ops/UserAccountLegacy codebase. A GeoCoordinates component enriches user accounts with coordinates via the address-lookup service. Publishes TC.UserAccountLegacy.ServiceContract and ServiceClient NuGet packages (multi-targeted netstandard2.0/net462/net472/net48/net8.0) for consumers.
Tech stack
C#: WCF service host on .NET Framework 4.8 (wsHttpBinding), core service logic on .NET Standard 2.0 using raw System.Data.SqlClient, and multi-targeted contract/client packages so both Framework and .NET 8 consumers can call it. SQL schema managed in db/UserAccount_Legacy (create + differential change scripts).
Deployment
Actively deployed (prod_application, 2 releases). Build pipelines backoffice-useraccount-legacy CI (azure-pipelines.yml, VS 2022 build of the ServiceHost plus dotnet packaging of the client) and backoffice-useraccount-legacy Database (build-useraccountlegacy.db.yml); release pipelines \finance\backoffice\backoffice-useraccount-legacy CI and \finance\backoffice\UserAccountLegacy Database.
Dependencies
Calls the address-lookup service via TC.AddressLookup.ServiceContract over ConnectionBroker WCF (repo backoffice-address-lookup-service). Also references internal TC.Mail and TC.Exceptions contracts. No third-party external services.
Data stores
SQL Server UserAccount_Legacy database (owned by this repo; connection resolved via ConnectionBroker GetDatabaseConnectionString("UserAccount_Legacy")).
Integration points
Inbound SOAP/WCF (wsHttpBinding, including a no-security binding). Outbound WCF to the address-lookup and mail services. No REST endpoints or message bus.
Code health
Four test projects (service, service host, client, geo-coordinates) though coverage looks thin (e.g. a single PersonTests.cs for the core service). YAML CI runs tests/**/*Tests.csproj. Last commit 2026-06-22 — still receiving changes.
Modernisation risks
Explicitly a legacy bridge: WCF host on .NET Framework 4.8 with raw ADO.NET data access. The multi-targeted client (including net8.0) suggests it is deliberately kept alive for both old and new consumers, so retirement depends on migrating consumers to backoffice-useraccount-service or equivalent REST APIs. Legacy framework and WCF coupling make this high priority despite recent activity.