Ben Foster 3/23/2016

Multi-tenant Dependency Injection in ASP.NET Core

Read Original

This technical article discusses extending ASP.NET Core's built-in Dependency Injection to support a 'tenant-singleton' scope, where expensive objects like NHibernate's Session Factory are created once per tenant. It explores the limitations of the default IServiceProvider and proposes a solution using StructureMap to manage tenant-isolated dependencies.

Multi-tenant Dependency Injection in ASP.NET Core

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser