backoffice-documentation-booking
WCF services and contract packages for generating, loading and saving booking, quote and certificate PDF documents via OpenText Exstream, stored in AWS S3 with headers in SQL Server.
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, Autofac/Ninject/SimpleInjector DI adapters |
| Runtimes | .NET Framework 4.8, .NET Standard 2.1 |
| Tests / CI | some / CI in place |
| Last commit | 2026-07-23 |
| Owner | Owner unknown (mapping to be curated) |
| Domain | Bookings and fulfilment (system generated; curate in repo-owners.json to override) |
| Product area | Phenix |
| Hosted | On-prem Deployed to our own machines
|
| Releases | 4 release pipeline(s): \ops\documentationbooking\backoffice-documentation-booking CI; \ops\documentationbooking\backoffice-documentation-booking stealth; \ops\documentationquote\backoffice-documentation-quote CI; \ops\documentationquote\backoffice-documentation-quote stealth |
| Integration | wcf, rest |
| Source | Open in Azure DevOps |
Risk flags
Each flag links to its glossary definition.
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.
- 13 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:Documents: 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-documentation-booking to modern .NET
Runs on .NET Framework 4.8, .NET Standard 2.1, out of mainstream support. No pinning dependency blocks it; sequence by fan-in (providers before consumers).
Impact: Unblocks 13 dependent system(s)
proposedRaise the test floor on backoffice-documentation-booking
13 systems depend on it and test coverage is thin. Chokepoints carry good tests before they are changed.
Impact: De-risks change for 13 dependent systems
proposedAssessment notes
backoffice-documentation-booking
Purpose
Houses three WCF service projects (Booking, Quote, Certificates document services) plus contract NuGet packages for generating, loading and saving booking documents, quote documents and best-ever-month certificates. Services build XML passed to the OpenText Exstream engine with a template to render PDFs, which are stored in AWS S3 with a header row in a database.
Tech stack
C# on .NET Framework 4.8: TC.Documentation.Booking.ServiceHost and TC.Documentation.Quote.ServiceHost WCF services, shared BackOffice.Documentation.Core/Provider libraries, contract and resource-string packages (with Autofac, Ninject, SimpleInjector and MS DI adapters), WinForms test clients, and a .NET Standard 2.1 SQL script database project. Heavy use of internal packages (TC.ConnectionBroker.*, TC.Cache, TC.CardPayments.*, TC.Cognito.Auth.Client) plus AWSSDK Cognito/SecurityToken.
Deployment
One YAML build (backoffice-documentation-booking) compiling both service hosts and publishing seven contract/resource packages plus DB scripts. Four release pipelines (booking CI + stealth, quote CI + stealth under \ops); release_count 4. IIS hosting with per-environment Web.*.config transforms (production, preproduction, testqa, training, etc.).
Dependencies
Internal: backoffice-documentation-ews (Exstream Web Service WCF proxy under Connected Services/Providers.HP), tc-connectionbroker (SQL/WCF/HTTP connection brokering). Its contract packages are consumed by other estate repos (e.g. backoffice-bt-credit-notes, backoffice-documentation-certificates-task). External: OpenText Exstream (PDF engine, on-prem server UKBOLEXS1), AWS S3 (document storage), AWS Cognito (auth).
Data stores
SQL Server Documents database (dbo stored procedures for document headers, search, themes — managed as versioned SQL scripts in backoffice-documentation-database). AWS S3 buckets for the generated PDF binaries.
Integration points
Exposes WCF endpoints for booking/quote/certificate document operations; calls the Exstream engine over WCF (EWS contract); uses connection-broker REST/HTTP clients for other internal services; Cognito-based auth tokens.
Code health
Six test projects (MSTest/xUnit); README admits coverage is "fairly low". YAML CI on master/release. Last commit 2026-07-23 — actively maintained. Good README documenting builds and releases.
Modernisation risks
High priority: .NET Framework 4.8 WCF hosts have no direct migration path to modern .NET; deep coupling to the OpenText Exstream engine and its WCF contract; packages.config-era dependency management; test coverage is thin for a document-generation system used across bookings, quotes and certificates.