File tree 7 files changed +6
-42
lines changed
src/ProjectTemplates/Web.ProjectTemplates/content
7 files changed +6
-42
lines changed Original file line number Diff line number Diff line change 1
1
open System
2
2
open Microsoft.AspNetCore .Builder
3
- open Microsoft.Extensions .Hosting
4
3
5
4
[<EntryPoint>]
6
5
let main args =
Original file line number Diff line number Diff line change 1
- namespace Company.WebApplication1.Controllers
1
+ namespace Company.WebApplication1.Controllers
2
2
3
- open System
4
- open System.Collections .Generic
5
- open System.Linq
6
- open System.Threading .Tasks
7
3
open System.Diagnostics
8
-
9
4
open Microsoft.AspNetCore .Mvc
10
- open Microsoft.Extensions .Logging
11
-
12
5
open Company.WebApplication1 .Models
13
6
14
- type HomeController ( logger : ILogger < HomeController > ) =
7
+ type HomeController () =
15
8
inherit Controller()
16
9
17
10
member this.Index () =
@@ -22,7 +15,7 @@ type HomeController (logger : ILogger<HomeController>) =
22
15
23
16
[<ResponseCache( Duration = 0 , Location = ResponseCacheLocation.None, NoStore = true ) >]
24
17
member this.Error () =
25
- let reqId =
18
+ let reqId =
26
19
if isNull Activity.Current then
27
20
this.HttpContext.TraceIdentifier
28
21
else
Original file line number Diff line number Diff line change @@ -2,21 +2,12 @@ namespace Company.WebApplication1
2
2
3
3
#nowarn " 20"
4
4
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
11
5
open Microsoft.AspNetCore .Builder
12
- open Microsoft.AspNetCore .Hosting
13
6
#if ! NoHttps
14
7
open Microsoft.AspNetCore .HttpsPolicy
15
8
#endif
16
- open Microsoft.Extensions .Configuration
17
9
open Microsoft.Extensions .DependencyInjection
18
10
open Microsoft.Extensions .Hosting
19
- open Microsoft.Extensions .Logging
20
11
21
12
module Program =
22
13
let exitCode = 0
Original file line number Diff line number Diff line change 1
- namespace Company.WebApplication1.Controllers
1
+ namespace Company.WebApplication1.Controllers
2
2
3
3
open System
4
- open System.Collections .Generic
5
- open System.Linq
6
- open System.Threading .Tasks
7
4
open Microsoft.AspNetCore .Mvc
8
- open Microsoft.Extensions .Logging
9
5
open Company.WebApplication1
10
6
11
7
[<ApiController>]
Original file line number Diff line number Diff line change 1
1
namespace Company.WebApplication1
2
2
#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
+
9
4
open Microsoft.AspNetCore .Builder
10
- open Microsoft.AspNetCore .Hosting
11
5
#if ! NoHttps
12
6
open Microsoft.AspNetCore .HttpsPolicy
13
7
#endif
14
- open Microsoft.Extensions .Configuration
15
8
open Microsoft.Extensions .DependencyInjection
16
- open Microsoft.Extensions .Hosting
17
- open Microsoft.Extensions .Logging
18
9
19
10
module Program =
20
11
let exitCode = 0
Original file line number Diff line number Diff line change 1
1
namespace Company.Application1
2
2
3
- open System
4
- open System.Collections .Generic
5
- open System.Linq
6
- open System.Threading .Tasks
7
3
open Microsoft.Extensions .DependencyInjection
8
4
open Microsoft.Extensions .Hosting
9
5
@@ -17,4 +13,4 @@ module Program =
17
13
let main args =
18
14
createHostBuilder( args) .Build() .Run()
19
15
20
- 0 // exit code
16
+ 0 // exit code
Original file line number Diff line number Diff line change 1
1
namespace Company.Application1
2
2
3
3
open System
4
- open System.Collections .Generic
5
- open System.Linq
6
4
open System.Threading
7
5
open System.Threading .Tasks
8
6
open Microsoft.Extensions .Hosting
You can’t perform that action at this time.
0 commit comments