-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
45 lines (38 loc) · 1.6 KB
/
Program.cs
File metadata and controls
45 lines (38 loc) · 1.6 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
40
41
42
43
44
45
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using CoreBot.Database;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
namespace Microsoft.BotBuilderSamples
{
public class Program
{
public static Database database;
public static void Main(string[] args)
{
database = new Database();
database.addItem(new Book("Book1", "William Shakespeare", 200));
database.addItem(new Book("Book2", "William Shakespeare", 250));
database.addItem(new Book("Book3", "Penny Jordan", 300));
database.addItem(new Book("Book4", "Rex Stout", 250));
database.addItem(new Car("Ferrari", "Red", 405));
database.addItem(new Car("Mercedes", "Black", 200));
database.addItem(new Car("Toyota", "Grey", 180));
database.addItem(new Car("Peugeot", "Yellow", 110));
database.addItem(new Car("Citroen", "Black", 110));
database.addItem(new Food("Steak", "main", 600));
database.addItem(new Food("Gulash", "main", 450));
database.addItem(new Food("Tiramisu", "dessert", 300));
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.ConfigureLogging((logging) =>
{
logging.AddDebug();
logging.AddConsole();
})
.UseStartup<Startup>();
}
}