Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
6f001fb5
Commit
6f001fb5
authored
Sep 24, 2017
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove matchPath
parent
41cf35d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
CAP.AppBuilderExtensions.cs
src/DotNetCore.CAP/CAP.AppBuilderExtensions.cs
+5
-11
No files found.
src/DotNetCore.CAP/CAP.AppBuilderExtensions.cs
View file @
6f001fb5
...
...
@@ -36,12 +36,9 @@ namespace Microsoft.AspNetCore.Builder
return
app
;
}
public
static
IApplicationBuilder
UseCapDashboard
(
this
IApplicationBuilder
app
,
string
pathMatch
=
"/cap"
)
public
static
IApplicationBuilder
UseCapDashboard
(
this
IApplicationBuilder
app
)
{
if
(
app
==
null
)
throw
new
ArgumentNullException
(
nameof
(
app
));
if
(
pathMatch
==
null
)
throw
new
ArgumentNullException
(
nameof
(
pathMatch
));
if
(
app
==
null
)
throw
new
ArgumentNullException
(
nameof
(
app
));
var
marker
=
app
.
ApplicationServices
.
GetService
<
CapMarkerService
>();
...
...
@@ -50,12 +47,9 @@ namespace Microsoft.AspNetCore.Builder
throw
new
InvalidOperationException
(
"Add Cap must be called on the service collection."
);
}
app
.
Map
(
new
PathString
(
pathMatch
),
x
=>
{
x
.
UseMiddleware
<
DashboardMiddleware
>();
x
.
UseMiddleware
<
GatewayProxyMiddleware
>();
});
app
.
UseMiddleware
<
GatewayProxyMiddleware
>();
app
.
UseMiddleware
<
DashboardMiddleware
>();
return
app
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment