Skip to content

Instantly share code, notes, and snippets.

@sfmskywalker
Last active June 25, 2018 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfmskywalker/5c485e0117a3c1c22970a06ff34401ad to your computer and use it in GitHub Desktop.
Save sfmskywalker/5c485e0117a3c1c22970a06ff34401ad to your computer and use it in GitHub Desktop.
Root Startup file
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
namespace MultiTenantApp
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services
.AddOrchardCore()
.WithTenants();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseOrchardCore();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment