File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed
frameworks/CSharp/fastendpoints Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
3- <PropertyGroup >
4- <TargetFramework >net6 .0</TargetFramework >
5- <Nullable >enable</Nullable >
6- <ImplicitUsings >enable</ImplicitUsings >
7- <NoWarn >CA2016;IDE1006</NoWarn >
8- </PropertyGroup >
3+ <PropertyGroup >
4+ <TargetFramework >net7 .0</TargetFramework >
5+ <Nullable >enable</Nullable >
6+ <ImplicitUsings >enable</ImplicitUsings >
7+ <NoWarn >CA2016;IDE1006</NoWarn >
8+ </PropertyGroup >
99
10- <ItemGroup >
11- <PackageReference Include =" FastEndpoints" Version =" 3 .*" />
12- </ItemGroup >
10+ <ItemGroup >
11+ <PackageReference Include =" FastEndpoints" Version =" 5 .*" />
12+ </ItemGroup >
1313
14- </Project >
14+ </Project >
Original file line number Diff line number Diff line change 11namespace Benchmarks . Endpoints ;
22
3- public class JsonEndpoint : Endpoint < EmptyRequest , object >
3+ public sealed class JsonEndpoint : Endpoint < EmptyRequest , object >
44{
55 public override void Configure ( )
66 {
Original file line number Diff line number Diff line change 11namespace Benchmarks . Endpoints ;
22
3- public class PlainTextEndpoint : Endpoint < EmptyRequest , EmptyResponse >
3+ public sealed class PlainTextEndpoint : Endpoint < EmptyRequest , EmptyResponse >
44{
55 private static readonly byte [ ] payload = System . Text . Encoding . UTF8 . GetBytes ( "Hello, World!" ) ;
66
Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/sdk:6.0.100 AS build
1+ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
22WORKDIR /app
33COPY Benchmarks .
44RUN dotnet publish -c Release -o out
55
6- FROM mcr.microsoft.com/dotnet/aspnet:6.0 .0 AS runtime
6+ FROM mcr.microsoft.com/dotnet/aspnet:7 .0 AS runtime
77WORKDIR /app
88COPY --from=build /app/out ./
99
You can’t perform that action at this time.
0 commit comments