File tree Expand file tree Collapse file tree 7 files changed +6
-42
lines changed
src/ProjectTemplates/Web.ProjectTemplates/content Expand file tree Collapse file tree 7 files changed +6
-42
lines changed Original file line number Diff line number Diff line change 11open System
22open Microsoft.AspNetCore .Builder
3- open Microsoft.Extensions .Hosting
43
54[<EntryPoint>]
65let main args =
Original file line number Diff line number Diff line change 1- namespace Company.WebApplication1.Controllers
1+ namespace Company.WebApplication1.Controllers
22
3- open System
4- open System.Collections .Generic
5- open System.Linq
6- open System.Threading .Tasks
73open System.Diagnostics
8-
94open Microsoft.AspNetCore .Mvc
10- open Microsoft.Extensions .Logging
11-
125open Company.WebApplication1 .Models
136
14- type HomeController ( logger : ILogger < HomeController > ) =
7+ type HomeController () =
158 inherit Controller()
169
1710 member this.Index () =
@@ -22,7 +15,7 @@ type HomeController (logger : ILogger<HomeController>) =
2215
2316 [<ResponseCache( Duration = 0 , Location = ResponseCacheLocation.None, NoStore = true ) >]
2417 member this.Error () =
25- let reqId =
18+ let reqId =
2619 if isNull Activity.Current then
2720 this.HttpContext.TraceIdentifier
2821 else
Original file line number Diff line number Diff line change @@ -2,21 +2,12 @@ namespace Company.WebApplication1
22
33#nowarn " 20"
44
5- open System
6- open System.Collections .Generic
7- open System.IO
8- open System.Linq
9- open System.Threading .Tasks
10- open Microsoft.AspNetCore
115open Microsoft.AspNetCore .Builder
12- open Microsoft.AspNetCore .Hosting
136#if ! NoHttps
147open Microsoft.AspNetCore .HttpsPolicy
158#endif
16- open Microsoft.Extensions .Configuration
179open Microsoft.Extensions .DependencyInjection
1810open Microsoft.Extensions .Hosting
19- open Microsoft.Extensions .Logging
2011
2112module Program =
2213 let exitCode = 0
Original file line number Diff line number Diff line change 1- namespace Company.WebApplication1.Controllers
1+ namespace Company.WebApplication1.Controllers
22
33open System
4- open System.Collections .Generic
5- open System.Linq
6- open System.Threading .Tasks
74open Microsoft.AspNetCore .Mvc
8- open Microsoft.Extensions .Logging
95open Company.WebApplication1
106
117[<ApiController>]
Original file line number Diff line number Diff line change 11namespace Company.WebApplication1
22#nowarn " 20"
3- open System
4- open System.Collections .Generic
5- open System.IO
6- open System.Linq
7- open System.Threading .Tasks
8- open Microsoft.AspNetCore
3+
94open Microsoft.AspNetCore .Builder
10- open Microsoft.AspNetCore .Hosting
115#if ! NoHttps
126open Microsoft.AspNetCore .HttpsPolicy
137#endif
14- open Microsoft.Extensions .Configuration
158open Microsoft.Extensions .DependencyInjection
16- open Microsoft.Extensions .Hosting
17- open Microsoft.Extensions .Logging
189
1910module Program =
2011 let exitCode = 0
Original file line number Diff line number Diff line change 11namespace Company.Application1
22
3- open System
4- open System.Collections .Generic
5- open System.Linq
6- open System.Threading .Tasks
73open Microsoft.Extensions .DependencyInjection
84open Microsoft.Extensions .Hosting
95
@@ -17,4 +13,4 @@ module Program =
1713 let main args =
1814 createHostBuilder( args) .Build() .Run()
1915
20- 0 // exit code
16+ 0 // exit code
Original file line number Diff line number Diff line change 11namespace Company.Application1
22
33open System
4- open System.Collections .Generic
5- open System.Linq
64open System.Threading
75open System.Threading .Tasks
86open Microsoft.Extensions .Hosting
You can’t perform that action at this time.
0 commit comments