With .NET 5 released in November, it’s a good time to talk about some of the many improvements in the networking stack. This includes improvements around HTTP, Sockets, networking-related security, and other networking primitives. In this post, I will highlight some of the more impactful and interesting changes in the release.
اشتراکها
Open source code is the norm for so many developers these days, and unsurprisingly, so is open documentation. From Azure to TypeScript,
public repositories have become a go-to place for sharing samples,
tutorials, and “tips and tricks” so that everyone can learn and
contribute together as a community.
The missing scope - Tenant-Singleton
If a singleton is created once per application, you can probably guess that a tenant-singleton is created once per tenant.
So when might you need this scope? Think of any object that is expensive to create or needs to maintain state yet should be isolated for each tenant. Good examples would be NHibernate's Session Factory, RavenDB's Document Store or ASP.NET's Memory Cache.
This is a GitBook version of the '97 Things Every Programmer Should Know' project.