File tree 3 files changed +20
-5
lines changed
3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ public void Configure(IWebHostBuilder builder) => builder
10
10
. ConfigureServices ( ( context , services ) => {
11
11
if ( context . HostingEnvironment . IsDevelopment ( ) )
12
12
{
13
- services . AddPlugin ( new RequestLogsFeature
14
- {
15
- EnableResponseTracking = true ,
16
- } ) ;
17
-
18
13
services . AddPlugin ( new ProfilingFeature
19
14
{
20
15
IncludeStackTrace = true ,
Original file line number Diff line number Diff line change
1
+ gist https://gist.github.com/gistlyn/c8441f82377cfed3a35006a51b33020d
Original file line number Diff line number Diff line change
1
+ using ServiceStack ;
2
+
3
+ [ assembly: HostingStartup ( typeof ( MyApp . ConfigureRequestLogs ) ) ]
4
+
5
+ namespace MyApp ;
6
+
7
+ public class ConfigureRequestLogs : IHostingStartup
8
+ {
9
+ public void Configure ( IWebHostBuilder builder ) => builder
10
+ . ConfigureServices ( ( context , services ) => {
11
+ if ( context . HostingEnvironment . IsDevelopment ( ) )
12
+ {
13
+ services . AddPlugin ( new RequestLogsFeature
14
+ {
15
+ EnableResponseTracking = true ,
16
+ } ) ;
17
+ }
18
+ } ) ;
19
+ }
You can’t perform that action at this time.
0 commit comments