-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
39 lines (36 loc) · 1.42 KB
/
Program.cs
File metadata and controls
39 lines (36 loc) · 1.42 KB
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
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using System;
namespace RapidField.SolidInstruments.Example.WebApplication
{
/// <summary>
/// Houses the entry point for the application.
/// </summary>
public static class Program
{
/// <summary>
/// Configures the hosting environment.
/// </summary>
/// <param name="args">
/// Command line arguments provided at runtime.
/// </param>
/// <returns>
/// The configured hosting environment.
/// </returns>
public static IWebHost BuildWebHost(String[] args) => WebHost
.CreateDefaultBuilder(args)
.UseKestrel()
.UseStartup<Startup>()
.Build();
/// <summary>
/// Begins execution of the application.
/// </summary>
/// <param name="args">
/// Command line arguments that are provided at runtime.
/// </param>
public static void Main(String[] args) => BuildWebHost(args).Run();
}
}