-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
39 lines (33 loc) · 1.02 KB
/
Copy pathProgram.cs
File metadata and controls
39 lines (33 loc) · 1.02 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
using System;
using System.Threading;
using Pipeline.Data;
using Pipeline.Git;
using Pipeline.States;
using SimpleInjector;
namespace Pipeline
{
class Program
{
static void Main(string[] args)
{
new Program().Run();
}
private void Run()
{
var container = new Container();
container.Register<Logger>(Lifestyle.Singleton);
container.Register<ConfigProvider>(Lifestyle.Singleton);
container.Register<ManifestProvider>(Lifestyle.Singleton);
container.Register<DataContainer>(Lifestyle.Singleton);
container.Register<FileService>(Lifestyle.Singleton);
container.Register<GitService>(Lifestyle.Singleton);
container.Register<BuildService>(Lifestyle.Singleton);
var stateMachine = container.GetInstance<StateMachine>();
stateMachine.Start();
while (true)
{
Thread.Sleep(1000);
}
}
}
}