Skip to content

Commit d25a5bf

Browse files
committed
Upgrade to v8.1.1 endpoints
1 parent fd186ed commit d25a5bf

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

MyApp/Program.cs

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var builder = WebApplication.CreateBuilder(args);
2+
var services = builder.Services;
23

34
// Add services to the container.
45
var mvcBuilder = builder.Services.AddRazorPages();
@@ -7,6 +8,8 @@
78
mvcBuilder.AddRazorRuntimeCompilation();
89
}
910

11+
services.AddServiceStack(typeof(MyServices).Assembly);
12+
1013
var app = builder.Build();
1114

1215
// Configure the HTTP request pipeline.
@@ -20,8 +23,6 @@
2023
app.UseHttpsRedirection();
2124
app.UseStaticFiles();
2225

23-
app.UseServiceStack(new AppHost());
24-
2526
app.UseRouting();
2627

2728
app.UseAuthorization();
@@ -30,4 +31,8 @@
3031

3132
app.UseStatusCodePagesWithReExecute("/Error", "?status={0}");
3233

34+
app.UseServiceStack(new AppHost(), options => {
35+
options.MapEndpoints();
36+
});
37+
3338
app.Run();

NuGet.Config

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<packageSources>
4-
<add key="ServiceStack MyGet feed" value="https://www.myget.org/F/servicestack" />
54
<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" />
66
</packageSources>
77
</configuration>

0 commit comments

Comments
 (0)