diff --git a/GingerPACTPluginConsole/Program.cs b/GingerPACTPluginConsole/Program.cs index 0662589..e5e70bd 100644 --- a/GingerPACTPluginConsole/Program.cs +++ b/GingerPACTPluginConsole/Program.cs @@ -17,7 +17,14 @@ static void Main(string[] args) //GingerNodeStarter.StartNode(new PACTService(), "PACT Service 1"); using (GingerNodeStarter gingerNodeStarter = new GingerNodeStarter()) { - gingerNodeStarter.StartNode("PACT Service 1", new PACTService()); + if (args.Length > 0) + { + gingerNodeStarter.StartFromConfigFile(args[0]); + } + else + { + gingerNodeStarter.StartNode("PACT Service 1", new PACTService()); + } gingerNodeStarter.Listen(); }