IOptionsSnapshot: The Snapshot Your Singleton Froze
IOptionsSnapshot is scoped. Inject it into a singleton and Production will not throw. You get one snapshot, minted at first resolve, that ignores every reload.
The Augmented Dev ยท Archive
Dynamics 365, Power Platform, AI, system design, and web development โ filter by theme or search across every published post. Prefer a chronological list? Use the archive.
Newsletter
One email when a new post goes up. Double opt-in, unsubscribe anytime. Not a daily digest.
313 articles
IOptionsSnapshot is scoped. Inject it into a singleton and Production will not throw. You get one snapshot, minted at first resolve, that ignores every reload.
SELECT โฆ FOR UPDATE locks tuples that exist. An empty scan is not a lock on the key. Two sessions both insert; a unique violation is the lucky case.
Only Add, Update, and Delete belong in a Dataverse changeset. List rows is not in that transaction, and the next Add a new row is its own commit.
Assign, SetState, Merge, and Associate are their own messages. An Update step on ownerid or statecode never sees them. On Assign, Target is an EntityReference.
A CPU limit is a CFS quota, not a wait for spare cores. Utilization looks fine. p99 does not. Requests pack the node. Limits still pause the process.
LeetCode 46 in Python. Enumerate every order with a used array or in-place swaps, and skip the start-index trick that made Subsets unique.
Cookie auth, antiforgery, and TempData encrypt with the Data Protection key ring. The default ring is local. A second instance, a slot swap, or a recycled container mints a ring the first one never had.
Human approval is not a new chat message. It is a delay before the matching tool_result. A user turn in that gap is a 400, a lost denial, or a tool that ran anyway.
SKIP LOCKED does not mean the next free job. It skips rows that currently have a conflicting lock. A forgotten transaction can make a full queue claim nothing until that session ends.
Add a new row binds lookups as entityset(guid). A raw GUID or name is not a bind.
update_recordset, insert_recordset, and delete_from send SQL now. They skip table methods, CoC, and events. Stamp the columns the method would have stamped, or stay on the row path.
The kubelet sends SIGTERM while the Service may still route here. preStop counts against the grace period. Keep liveness green while you drain.
after() is not a request API. On a static page the callback runs at build or revalidate. Read cookies before the callback, and do not treat it as a job queue.