-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStartup.EntryPoint.cs
51 lines (44 loc) · 1.43 KB
/
Startup.EntryPoint.cs
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
namespace WebSite
{
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
public partial class Startup
{
/// <summary>
/// Entry point of windows form application.
/// </summary>
/// <param name="args">The arguments.</param>
public static void Start(string[] args)
{
DynamicPets.Program.Main();
}
/// <summary>
/// Entry Point of the web Application.
/// </summary>
/// <param name="args">The arguments.</param>
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
/// <summary>
/// Returns a new WebHost
/// </summary>
/// <param name="args">run arguments</param>
/// <returns>a new WebHost</returns>
public static IWebHost BuildWebHost(string[] args){
return WebHost.CreateDefaultBuilder(args)
//// logging
//.ConfigureLogging(builder => builder.AddFile(options =>
//{
// options.FileName = "log-";
// options.LogDirectory = "LogFiles";
// options.FileSizeLimit = 20 * 1024 * 1024;
//}))
//// IIS Deployment
//.UseUrls("http://localhost:81")
//.UseIISIntegration()
.UseStartup<Startup>()
.Build();
}
}
}