-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
52 lines (42 loc) · 1.61 KB
/
Program.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
51
52
namespace bootstrapper.sample
{
using System;
using bbv.Common.Bootstrapper;
public static class Program
{
public static void Main(string[] args)
{
using (var bootstrapper = new DefaultBootstrapper<ISensor>())
{
bootstrapper.Initialize(new SensorLifetimeStrategy());
PrintHeader();
bootstrapper.Run();
PrintBody();
bootstrapper.Shutdown();
PrintFooter();
}
}
private static void PrintHeader()
{
Console.WriteLine("Sirius Cybernetics Sensor Management v1.0");
Console.WriteLine("Techday 2011, bbv Software Services Ag");
Console.WriteLine("=========================================================");
Console.WriteLine("=========================================================");
Console.WriteLine("Press any key to start sensors");
Console.WriteLine("---------------------------------------------------------");
Console.ReadLine();
}
private static void PrintBody()
{
Console.WriteLine("---------------------------------------------------------");
Console.WriteLine("Press any key to stop sensors");
Console.ReadLine();
}
private static void PrintFooter()
{
Console.WriteLine("---------------------------------------------------------");
Console.WriteLine("Press any key to exit the sensor management.");
Console.ReadLine();
}
}
}