FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
.NET-Core-3.1-example-Web-API/Itbeard.Web/Program.cs at master · it-beard/.NET-Core-3.1-example-Web-API · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
it-beard
/
.NET-Core-3.1-example-Web-API
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
6
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
.NET-Core-3.1-example-Web-API
/
Itbeard.Web
/
Program.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (29 loc) · 892 Bytes
Breadcrumbs
.NET-Core-3.1-example-Web-API
/
Itbeard.Web
/
Program.cs
Copy path
File metadata and controls
31 lines (29 loc) · 892 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
IO
;
using
System
.
Linq
;
using
System
.
Threading
.
Tasks
;
using
Autofac
.
Extensions
.
DependencyInjection
;
using
Microsoft
.
AspNetCore
;
using
Microsoft
.
AspNetCore
.
Hosting
;
using
Microsoft
.
Extensions
.
Configuration
;
using
Microsoft
.
Extensions
.
Hosting
;
using
Microsoft
.
Extensions
.
Logging
;
namespace
Itbeard
.
Web
{
public
class
Program
{
public
static
void
Main
(
string
[
]
args
)
{
CreateHostBuilder
(
args
)
.
Build
(
)
.
Run
(
)
;
}
public
static
IHostBuilder
CreateHostBuilder
(
string
[
]
args
)
=>
Host
.
CreateDefaultBuilder
(
args
)
.
UseServiceProviderFactory
(
new
AutofacServiceProviderFactory
(
)
)
.
ConfigureWebHostDefaults
(
webBuilder
=>
{
webBuilder
.
UseStartup
<
Startup
>
(
)
;
}
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL