StaffCoder
.NET
.NET.NET 10
12 modules · 48 challengesSign up
Modules12 modules · 48 challenges
Learn how an application reads its settings: binding a configuration section to a typed class, giving each tenant its own named set so one never overwrites another, reading values afresh per request so a change is honoured by the very next one, keeping a long lived reader in step as settings change, and refusing to start when a setting is wrong.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Reloadable Feature Settings

Sign up to unlock
100%1 of 1 solvedmedium
About this challenge

Sign up to see what this challenge asks.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Named Tenant Options

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers giving each tenant its own set of delivery settings, read from that tenant's own part of the configuration, so that one tenant's values never replace another's and the settings the application starts with are left alone.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Options Change Notifications

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers keeping a long lived cache in step with settings that change while the application is running, so that what it serves follows the new settings and it reports how many times it has been refreshed.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Feature Flag Service

STAR
Solving it completes the module
—No data yetmedium
About this challenge

This problem covers serving feature flags that stay the same for the length of one request, keeping a long lived reader up to date as those flags change, and stopping the application from starting when a flag set carries a value it is not allowed to carry.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.