File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
ProjectTemplates/Web.ProjectTemplates/content Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22using Microsoft . AspNetCore . Builder ;
33using Microsoft . Extensions . Hosting ;
44
5- await using var app = WebApplication . Create ( args ) ;
5+ var app = WebApplication . Create ( args ) ;
66
77if ( app . Environment . IsDevelopment ( ) )
88{
1818string SayHello ( string name ) => $ "Hello, { name } !";
1919app . MapGet ( "/hello/{name}" , ( Func < string , string > ) SayHello ) ;
2020
21- await app . RunAsync ( ) ;
21+ app . Run ( ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ open Microsoft.Extensions.Hosting
44
55[<EntryPoint>]
66let main args =
7- use app = WebApplication.Create( args)
7+ let app = WebApplication.Create( args)
88
99 if app.Environment.IsDevelopment() then
1010 app.UseDeveloperExceptionPage() |> ignore
Original file line number Diff line number Diff line change 33using Microsoft . Extensions . Hosting ;
44
55var builder = WebApplication . CreateBuilder ( args ) ;
6- await using var app = builder . Build ( ) ;
6+ var app = builder . Build ( ) ;
77
88if ( app . Environment . IsDevelopment ( ) )
99{
1212
1313app . MapGet ( "/" , ( Func < string > ) ( ( ) => "Hello World!" ) ) ;
1414
15- await app . RunAsync ( ) ;
15+ app . Run ( ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ open Microsoft.Extensions.Hosting
55[<EntryPoint>]
66let main args =
77 let builder = WebApplication.CreateBuilder( args)
8- use app = builder.Build()
8+ let app = builder.Build()
99
1010 if app.Environment.IsDevelopment() then
1111 app.UseDeveloperExceptionPage() |> ignore
You can’t perform that action at this time.
0 commit comments