File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
var builder = WebApplication . CreateBuilder ( args ) ;
2
+ var services = builder . Services ;
2
3
3
4
// Add services to the container.
4
5
var mvcBuilder = builder . Services . AddRazorPages ( ) ;
7
8
mvcBuilder . AddRazorRuntimeCompilation ( ) ;
8
9
}
9
10
11
+ services . AddServiceStack ( typeof ( MyServices ) . Assembly ) ;
12
+
10
13
var app = builder . Build ( ) ;
11
14
12
15
// Configure the HTTP request pipeline.
20
23
app . UseHttpsRedirection ( ) ;
21
24
app . UseStaticFiles ( ) ;
22
25
23
- app . UseServiceStack ( new AppHost ( ) ) ;
24
-
25
26
app . UseRouting ( ) ;
26
27
27
28
app . UseAuthorization ( ) ;
30
31
31
32
app . UseStatusCodePagesWithReExecute ( "/Error" , "?status={0}" ) ;
32
33
34
+ app . UseServiceStack ( new AppHost ( ) , options => {
35
+ options . MapEndpoints ( ) ;
36
+ } ) ;
37
+
33
38
app . Run ( ) ;
Original file line number Diff line number Diff line change 1
- <?xml version =" 1.0" encoding =" utf-8" ?>
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<configuration >
3
3
<packageSources >
4
- <add key =" ServiceStack MyGet feed" value =" https://www.myget.org/F/servicestack" />
5
4
<add key =" nuget.org" value =" https://api.nuget.org/v3/index.json" protocolVersion =" 3" />
5
+ <add key =" ServiceStack Pre-Release" value =" https://f.feedz.io/servicestack/pre-release/nuget/index.json" />
6
6
</packageSources >
7
7
</configuration >
You can’t perform that action at this time.
0 commit comments