public void ConfigureContainer(ServiceRegistry services) { services.AddLogging(); services.AddMultitenancy <Tenant, DefaultTenantResolver>(); services.AddDbContext <TenantDbContext>(options => { }); services.Scan(scanner => { // scanner.AssembliesFromApplicationBaseDirectory(); scanner.TheCallingAssembly(); scanner.WithDefaultConventions(); }); }