~/talk

Async injection

Talkat NDC London 2019 · 2019-01-30..02-01· [c-sharp, functional-programming]
slides:none on file

Shows how to keep domain code synchronous while IO stays async by moving impure operations to the boundary, refactoring nullable returns into a composable Maybe<T> (Option), and treating async operations as a Task monad with Select/SelectMany to flatten nested tasks. Code examples in C# replace null checks with match/aggregate, map reservations to creates at the boundary, and let core logic remain deterministic. The pattern—called behavior injection—compiles, runs, and avoids leaking async into domain interfaces.

AI-written summary · about

  1. 0:00Start
  2. 2:39Business Logic
  3. 3:01Method Signature
  4. 4:01Constructor Injection
  5. 7:23The Dependency Inversion Principle
  6. 11:57How Do I Get the Value of My Monad
  7. 16:14Structure Preserving Map
  8. 22:49Query Syntax
  9. 28:29Semi Containers
  10. 32:15Constructor Overload
  11. 32:44Add a Select Method
  12. 41:01How Do I Combine Dependency Injection with Async and a Weight without Leaky Abstraction
  13. 44:59Dependency Injection
  14. 45:48Repository Create
  15. 48:17Change the Post Method
  16. 51:28Compiler Warning
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.