-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathProgram.cs
More file actions
24 lines (22 loc) · 641 Bytes
/
Program.cs
File metadata and controls
24 lines (22 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace DotNetGraphQL.API
{
public static class Program
{
public static Task Main(string[] args)
{
var directory = Directory.GetCurrentDirectory();
return new WebHostBuilder()
.UseKestrel()
.UseContentRoot(directory)
.UseWebRoot(Path.Combine(directory, "Public"))
.UseIISIntegration()
.UseStartup<Startup>()
.Build()
.RunAsync();
}
}
}