
Using, using, using with C# 8
C# has different meanings for the using keyword. One is the using directive to import types from namespaces, and to … Continue reading Using, using, using with C# 8
C# has different meanings for the using keyword. One is the using directive to import types from namespaces, and to … Continue reading Using, using, using with C# 8
The DI container Microsoft.Extensions.DependencyInjection disposes registered services automatically. It’s just the question when the dispose takes place. Automatic dispose of transient and scoped services happen at the end of a scope. With ASP.NET Core applications, scopes are created with every HTTP request – after the request, services are disposed. This article shows creating and using DI scopes with XAML-based applications. Continue reading Disposing Injected Services (or: Using Dependency Injection Scopes)