forked from OrchardCMS/OrchardCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
159b8f5
commit 92b071d
Showing
5 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/OrchardCore/Microsoft.AspNetCore.Modules/ModularTenantRouteBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.AspNetCore.Builder.Internal; | ||
using Microsoft.AspNetCore.Routing; | ||
|
||
namespace Microsoft.AspNetCore.Modules | ||
{ | ||
public class ModularTenantRouteBuilder : IModularTenantRouteBuilder | ||
{ | ||
private readonly IServiceProvider _serviceProvider; | ||
|
||
// Register one top level TenantRoute per tenant. Each instance contains all the routes | ||
// for this tenant. | ||
public ModularTenantRouteBuilder(IServiceProvider serviceProvider) | ||
{ | ||
_serviceProvider = serviceProvider; | ||
} | ||
|
||
public IRouteBuilder Build() | ||
{ | ||
IApplicationBuilder appBuilder = new ApplicationBuilder(_serviceProvider); | ||
|
||
var routeBuilder = new RouteBuilder(appBuilder) | ||
{ | ||
}; | ||
|
||
return routeBuilder; | ||
} | ||
|
||
public void Configure(IRouteBuilder builder) | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters