Forking the pipeline - adding tenant-specific static files to ASP.NET Core

added by Andrew Lock
8/4/2016 9:01:28 PM

1 Kicks, 268 Views

This is another in a series of posts looking at how to add multi-tenancy to ASP.NET Core applications using SaasKit. SaasKit is an open source project, created by Ben Foster, to make adding multi-tenancy to your application easier. In the last two posts I looked at how you can load your tenants from the database, and cache the TenantContext between requests. In this post I show how we can fork the ASP.NET Core middleware pipeline to allow serving tenant-specific files using SaasKit and some custom Middleware.