C# Double Header: Discriminated Unions & Ambient Context Pattern


Details
Melb.NET is excited to host Dominic Codespoti and Tama Waddell for a night filled with C# coding tricks and insights.
Sponsors:
We have some amazing sponsors that help make this event possible:
- Arinco - Food and drinks
- Tank Stream Labs - Venue
- Dotnet Foundation for the meetup page
Agenda:
5:30pm arrival, 6pm kickoff. Food and drinks provided in-person
- Welcome & Introduction and few words from our Sponsors - 10 min
- Talk 1 - 25 min
- break - 10 min
- Talk 2 - 45 min
Talk 1: We have Discriminated Unions at home
by Dominic Codespoti - Principal AI Engineer at Arinco
There's a proposal for discriminated unions? But C# already natively supports it? Enter, marker interfaces acting as a pseudo discriminated union! All the power of compile-time safety, switching, deserialization support and more, all with native support out of the box.
Talk 2: Exploring the Ambient Context Pattern with AsyncLocal and ThreadLocal
by Tama Waddell - Managing Consultant at Arinco
Developing APIs often requires handling contextual data like logging, configuration, diagnostics, and metadata. Passing this data explicitly through each layer can quickly become messy and cumbersome. Learn how AsyncLocal and ThreadLocal enable clean, implicit access to context without tightly coupling dependencies. I'll demonstrate practical implementations and share best practices to streamline your architecture.
Hosts:
William Liebenberg - Microsoft .NET MVP | Azure and .NET App Innovation Consultant at Arinco
Bron Thulke - Microsoft .NET MVP | CTO / Co-Founder at YouLi
Danidu Weerasinghe - Microsoft Azure MVP | Principal Consultant at Arinco
Location:
In-Person at Arinco Melbourne.
Level 6 / 440 Collins Street, Melbourne CBD
🗣 Apply to speak now: https://bit.ly/melb-dotnet-cfp

Sponsors
C# Double Header: Discriminated Unions & Ambient Context Pattern