Dotnettency
Dotnettency copied to clipboard
Multitenant Hosting Support Library
In terms of how a typical asp.net core app starts up, it typically uses something like this:
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
Note that this uses a single startup class to configure services and middleware for the entire application.
Could dotnettency offer a support library to improve this for multitenancy? I.e perhaps allowing you to implement your per tenant startup in a seperate class to the application startup class?
Think about this.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/platform-specific-configuration?view=aspnetcore-3.1