-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
52 lines (44 loc) · 1.54 KB
/
Copy pathProgram.cs
File metadata and controls
52 lines (44 loc) · 1.54 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
46
47
48
49
50
51
52
using Amdocs.Ginger.Plugin.Core;
using Ginger_PACT_Plugin;
using System;
namespace GingerPACTPluginConsole
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Starting PACT Plugin");
//PACTService s = new PACTService();
//GingerAction GA = new GingerAction("aa");
//s.StartPACTServer(ref GA, 4444);
//Console.WriteLine("Done!");
//GingerNodeStarter.StartNode(new PACTService(), "PACT Service 1");
using (GingerNodeStarter gingerNodeStarter = new GingerNodeStarter())
{
if (args.Length > 0)
{
gingerNodeStarter.StartFromConfigFile(args[0]);
}
else
{
gingerNodeStarter.StartNode("PACT Service 1", new PACTService());
}
gingerNodeStarter.Listen();
}
//GingerNode gingerNode = new GingerNode(new PACTService());
//if (args.Length == 0)
//{
// gingerNode.StartGingerNode("PACT 1", SocketHelper.GetLocalHostIP(), 15001);
//}
//else
//{
// gingerNode.StartGingerNode(args[0]); // start with nodeConfigFileName
//}
// test def
//PACTEditor2 editor = new PACTEditor2();
//var v = editor.HighlightingDefinition;
//TODO: Wait for?
Console.ReadKey();
}
}
}