Exemplo n.º 1
0
 public string FormatConfig(WindowServiceInfo serviceInfo)
 {
     if (serviceInfo == null)
     {
         return(string.Empty);
     }
     return(MyModelHelper.MakeIniStringExt(serviceInfo, lastSplit: Environment.NewLine));
 }
Exemplo n.º 2
0
 public void LoadConfig()
 {
     //todo read from config
     ServiceInfo                     = new WindowServiceInfo();
     ServiceInfo.ServiceName         = "DemoService";
     ServiceInfo.ServicePath         = "DemoWs.exe";
     ServiceInfo.ServiceFriendlyName = "000-DemoService";
 }